gpu-zombie-test/scenario-2-tini-only/parent.py

13 lines
283 B
Python

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