[IronPython] Suspending threads
curt at hagenlocher.org
Mon Mar 8 16:13:11 CET 2010
IronPython doesn't have "its own" threads; it runs on whatever thread it's
The .NET Thread class has methods Suspend (
and Resume (
These are deprecated and dangerous and all-around a bad idea. If you give a
little more detail about what you're trying to accomplish, perhaps someone
can suggest an alternative approach.
On Sun, Mar 7, 2010 at 9:55 PM, Idan Zaltzberg <idan at cloudshare.com> wrote:
> I would like to write a code the suspends all "other" threads, does
> something and then resumes them. Similar to what the GC does when its
> running (only I don’t do it for garbage collection).
> Obviously, I want only the threads I started to suspend and not to change
> the state of the interpreters threads.
> Is there a way to do this in IronPython?
> Users mailing list
> Users at lists.ironpython.com
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Ironpython-users