os.wait

2 views
Skip to first unread message

Charles R. Twardy

unread,
Jan 28, 2010, 6:19:25 PM1/28/10
to pebl-p...@googlegroups.com
Abhik,

Windows lacks os.wait(). I'd prefer to avoid Windows, but can't.
Recommended workaround for multiprocess.py? A forum suggested either:
subprocess.call(programToRun)
or
subprocess.Popen(programToRun).wait()

-Charles
--
Charles R. Twardy
Research Assistant Professor
George Mason University C4I Center
703 993 1846 voice
571 212 0674 mobile (10c/min)
ctw...@gmu.edu email

Abhik

unread,
Jan 28, 2010, 6:27:46 PM1/28/10
to pebl-p...@googlegroups.com
Hi Charles,
The recommended way to do this now is to use the python
multiprocessing module.. It's well-tested and part of the stdlib in
python 2.6 and onward.

I was planning on rewriting pebl/taskcontroller/multiprocess.py to use
that module but not sure when I can get to it (working on
dissertation!). Also, I have no way to test code on windows.

Thanks,
Abhik.

Reply all
Reply to author
Forward
0 new messages