I would like to create python processes instead of thread.
Can anyone give me an example or site which shows a tutorial about how
to create processes ?
Sincerely Yours,
Pujo
> Hello,
>
> I would like to create python processes instead of thread.
> Can anyone give me an example or site which shows a tutorial about how
> to create processes ?
See the os.fork documentation.
<mike
--
Mike Meyer <m...@mired.org> http://www.mired.org/home/mwm/
Independent WWW/Perforce/FreeBSD/Unix consultant, email for more information.
Should I run code from os. in order to run a processes?
Sincerely Yours,
pujo
Check out any or all of:
subprocess (new module in Python 2.4)
os.system
os.popen, os.popen2, os.popen3, os.popen4
Note that you can't just run a Python *function* in a separate process
directly. You'll have to have some way to call:
python.exe your_script.py
such that your function gets called.
Cheers,
Trent
--
Trent Mick
Tre...@ActiveState.com