Re: threads and sleep?
Available news archives: comp.lang.tcl - comp.lang.python - comp.security.firewalls - sci.crypt - comp.lang.php - comp.lang.javascript
Google
 
Web news.hping.org


comp.lang.python archive

Re: threads and sleep?

From: Peter Hansen <peter@engcorp.com>
Date: Tue Jul 05 2005 - 21:15:40 CEST

Jeffrey Maitland wrote:
> I was hoping that python would allow for the cpu threading such in
> Java etc.. but I guess not. (from the answers,and other findings) I
> guess I will have to write this part of the code in something such as
> java or c or something that allows for it then I can either wrap it in
> python or avoid python for this part of the app.

Or investigate the use of Irmen's Pyro package and how it could let you
almost transparently move your code to a *multi-process* architecture
which would then let you take advantage of all the CPUs you have
available (even if they _aren't_ on the same machine!).

-Peter
Received on Thu Sep 29 16:46:26 2005