1
이 코드는 Mac/Linux에서는 잘 작동하지만 Windows에서는 잘 동작하지 않습니다.Windows에서 Python과 os.fork()의 동등성은 무엇입니까?
import mmap import os map = mmap.mmap(-1, 13) map.write("Hello world!") pid = os.fork() if pid == 0: # In a child process print 'child' map.seek(0) print map.readline() map.close() else: print 'parent'
- Windows에서 os.fork()에 해당하는 기능은 무엇입니까?
정확한 복제본 : http://stackoverflow.com/questions/23397/whats-the-best-way-to-duplicate-fork-in-windows –
중복으로 인해 답변이 삭제되었습니다. –