#lexical scoping, whatever, etc.. etc...) I have with it 
#is that it is not SMP-friendly (or even capable?) because 
#of its 'global interpreter lock'. Java, otoh, will take 
#advantage of multiple CPUs VERY nicely and in many cases 
#

As you might already know, *the language*, and *the 
implementations/compilers* are two (2) distinct things. 

Java does not support SMP; the language has no special bindings to
SMP.  But a number of implementations of the Java Virtual Machine support
SMP.  Sun's implementation even has two (2) types of threading models,
green threads, and native threads.  Green threads as a matter of fact only
bind to one process -- the scheduling happens at at threading library 
level, and not at  processor level.  Native threads on the other hand,
well, are bound to native threads  (some systems have a a fea units of
execution -- threads, LWP, and the likes.)

Now for Python, I believe it's just a matter of time before someone
implements a byte-interpreter with support for SMP (if there isn't one
yet -- yes, currently CPython doesn't support it bec. of the use
of global interpreter lock, as you pointer out.)  Heck, this even becomes
moot if you run your Python app under jython.

stay cool.

jeff --
-- 
Jeff Gutierrez
Mapua Online! 
http://www.mapua.org
http://www.mapua.com
http://www.mapua.net

Pinoy Ako! May reklamo?



_
Philippine Linux Users Group. Web site and archives at http://plug.linux.org.ph
To leave: send "unsubscribe" in the body to [EMAIL PROTECTED]

To subscribe to the Linux Newbies' List: send "subscribe" in the body to 
[EMAIL PROTECTED]

Reply via email to