|
import subprocess
|
|
import time
|
|
import os
|
|
|
|
print(f"[Parent] PID: {os.getpid()}, PPID: {os.getppid()}")
|
|
|
|
child = subprocess.Popen(["python3", "gpu_worker_fixed.py"])
|
|
print(f"[Parent] Child spawned, PID: {child.pid}")
|
|
|
|
time.sleep(5)
|
|
print("[Parent] wait() 없이 종료합니다")
|
|
os._exit(0)
|