On Dec 6, 2007 1:30 PM, Byron <bvftmp1@...> wrote:
> backspaces wrote:
> > Sorry for the noob question, but: Does Jython use Java threads? I.e.
> > if I use the Jython thread package, does it simply map onto Java
> > threads? Ditto for GC: does Jython simply use the Java GC? .. or
> > does it need to implement its own on top of Java?
> Yes, Jython uses Java threads, so you can do something like this
> from java.lang import Thread
> class JyThread (Thread):
> def run(self):
> print "I am in a thread"
> thread = JyThread()
Also, the thread module is implemented on top of Java threads. If you
call thread.start_new_thread, the function is run in a new Java