threads

Arne Mueller a.mueller at icrf.icnet.uk
Fri Jun 4 10:08:41 EDT 1999


Thanks for all the information about threads.

I think the thread behaviour is a heavy disadvantage of python. However
it's not important in a case where you'd like to launch something in
background from a running application like printing or getting data from
a socket or whatever (remember those days when printing or copying files
locked your running application?). 

I think I'll try to solve my problem by switching from multiple threads
to different processes using 'fork'. The only problem I have is that all
these processes must have one object in common that collects all the
result data. Maybe a pipe or shared memory can help. Implementing my
computition intensive function in C is not a solution at the time - I'm
in a hurry ;-)

	cheers,

	Arne

-- 
Arne Mueller
Biomolecular Modelling Laboratory
Imperial Cancer Research Fund
44 Lincoln's Inn Fields
London WC2A 3PX, U.K.
phone : +44-(0)171 2693405      | Fax : +44-(0)171 269 3258
email : a.mueller at icrf.icnet.uk | http://www.icnet.uk/bmm/




More information about the Python-list mailing list