spawn or fork
Miki Tebeka
miki.tebeka at zoran.com
Wed Dec 8 05:55:01 EST 2004
Hello Colin,
> I have a function
> def printHello():
> fp = open('file','w')
> fp.write('hello')
> fp.close()
>
> I would like to call that function using spawn or fork. My questions are:
>
> 1. Which should I use
spawn and fork are very different functions. Read the documentation on
each.
Note the "fork" is available only in Unix like systems.
> 2. How do I call that function if it is defined in the same file.
Just call it.
def foo():
print 1
foo()
Bye.
--
------------------------------------------------------------------------
Miki Tebeka <miki.tebeka at zoran.com>
http://tebeka.bizhat.com
The only difference between children and adults is the price of the toys
More information about the Python-list
mailing list