Raymond Hettinger wrote: > [Samuele Pedroni] > >> there's no sys.checkinterval in Jython. Implementing this would need the >> introduction of some kind of GIL implementation in Jython, the JVM >> has no primitive for global critical sections. > > > Wouldn't Java implement this directly by suspending and resuming the > other threads (being careful to avoid access to monitored resources > and to pair the suspend/resume operations in a try/finally or > with-statement to prevent deadlocks)?
suspending a thread is a deprecated operation because it can cause deadlocks. _______________________________________________ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com