> 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.)
Yeah, I should have made that clearer. Do you get to choose whether to use green or native threads on a per Java thread basis? Or you have to commit to one model per Java app/JVM? > 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 I asked this in a newsgroup before. The answers I got were to not expect this anytime soon because it would require some big changes in the Python internals. To this day, I believe they still don't want to adopt stackless Python. > of global interpreter lock, as you pointer out.) Heck, this even becomes > moot if you run your Python app under jython. Hmmm you think so? That's the scenario I was mulling before... it could be that Jython has to do something like the global interpreter lock in CPython. _ 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]
