Astan Chee wrote: > I have a python script which i convert to an executeable (using py2exe) > and on a dual-cpu machine seems to be taking only 50% (1cpu) only. I was > wondering if there is a way to maximize CPU usage without forking the > function?
it depends on what your script is doing. the GIL makes it impossible to use more than one CPU per process for "byte code intensive" code: http://docs.python.org/api/threads.html but code that uses I/O or C-level crunching can get around this, if the C-level code is properly written. </F> -- http://mail.python.org/mailman/listinfo/python-list