Multiple instances of a python program

Rahul codedivine at gmail.com
Fri Jun 17 17:13:19 EDT 2005


Hi.
I will look into it..thanks
rahul

Jeremy Sanders wrote:
> On Thu, 16 Jun 2005 11:47:10 -0700, Rahul wrote:
>
> > If you have a python script and you want that 75 copies of the script be
> > run simultaneously how will you do it? Is there anyway to do so without
> > running 75 copies of the python interpreter simultaneously?
>
> If you're running on Linux (and other Unixes perhaps), you could use the
> os.fork() function to create independent child processes from a single
> python process. I believe Linux forked processes share memory until a
> section of memory is written to (copy on write functionality).
>
> If most of python is in a shared library, then this probably won't make
> much difference.
> 
> Jeremy




More information about the Python-list mailing list