[Tutor] Multithreading with Python on a Windows Machine

Gonçalo Rodrigues op73418@mail.telepac.pt
Mon Feb 10 07:55:13 2003


----- Original Message -----
From: "Scot Stevenson" <scot@possum.in-berlin.de>
To: "Danny Yoo" <dyoo@hkn.eecs.berkeley.edu>; <stjfunai@netzero.com>
Cc: <tutor@python.org>
Sent: Monday, February 10, 2003 9:48 AM
Subject: Re: [Tutor] Multithreading with Python on a Windows Machine


> Hello Danny,
>
> > I don't have a Windows system handy with me, but my memory tells me that
> > Python 2.2 does have a fork() for Windows... let me check.  Hmm...  Ok,
> > so the standard Python install for Windows doesn't appear to have it.
>
> Windows per se doesn't seem to have a fork call, or at least that is what
Mark
> Lutz says in "Programming Python", second edition, p. 89. However, the
book,
> as excellent as it is, is getting rather old in Python terms, so that
might
> have changed.
>

No this has not changed. the fork() call is still a unixism. You *may* want
to check the spawn*/exec* family of system calls (module os). They might
just do what you want.

> Y, Scot
>
> --
>   Scot W. Stevenson -- scot@possum.in-berlin.de -- Zepernick, Germany
>

All the best,
G. Rodrigues