Christian Walther wrote:

A nice example of a program being able to do threading, but one CPU
(core) only is python.

This is not strictly correct: Python relies on a global interpreter lock
(aka GIL) to protect internal data structures.  When code in the Python
process doesn't require access to these data structures, threads can run outside the influence of the lock and run simultaneously on multiple
CPUs.  Python's I/O system (eg file/network I/O) and many Python
extensions do exactly this.

--
-------------------------------------------------------------------------
Andrew I MacIntyre                     "These thoughts are mine alone..."
E-mail: [EMAIL PROTECTED]  (pref) | Snail: PO Box 370
       [EMAIL PROTECTED]             (alt) |        Belconnen ACT 2616
Web:    http://www.andymac.org/               |        Australia
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Reply via email to