[IronPython] Suspending threads

Curt Hagenlocher 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
called on.

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:

>  Hi,
> 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?
> Thanks.
> _______________________________________________
> Users mailing list
> Users at lists.ironpython.com
> http://lists.ironpython.com/listinfo.cgi/users-ironpython.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ironpython-users/attachments/20100308/0e9c99f4/attachment.html>

More information about the Ironpython-users mailing list