파이썬에서 동시성,병렬성에 대한 학습을 하면서 이해했던 것들을 재검토하는 시간에 Thread 안에 subprocess를 만나면 블로킹을 하고 다음 Thread로 넘어가는지에 대한 궁금증이 생겼다 바로 코드로 확인해보았다 import threading import subprocess import time def run_command(): print("Starting command...") subprocess.run(["sleep", "5"]) # 5초 동안 sleep하는 외부 명령 print("Command finished.") def do_other_stuff(): for i in range(3): print("Doing other stuff...") time.sleep(1) run_command() d..