<div>IronPython doesn&#39;t have &quot;its own&quot; threads; it runs on whatever thread it&#39;s called on.</div>
<div> </div>
<div>The .NET Thread class has methods Suspend (<a href="http://msdn.microsoft.com/en-us/library/system.threading.thread.suspend.aspx">http://msdn.microsoft.com/en-us/library/system.threading.thread.suspend.aspx</a>) and Resume (<a href="http://msdn.microsoft.com/en-us/library/system.threading.thread.resume.aspx">http://msdn.microsoft.com/en-us/library/system.threading.thread.resume.aspx</a>). These are deprecated and dangerous and all-around a bad idea. If you give a little more detail about what you&#39;re trying to accomplish, perhaps someone can suggest an alternative approach.<br>
<br></div>
<div class="gmail_quote">On Sun, Mar 7, 2010 at 9:55 PM, Idan Zaltzberg <span dir="ltr">&lt;<a href="mailto:idan@cloudshare.com">idan@cloudshare.com</a>&gt;</span> wrote:<br>
<blockquote style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex" class="gmail_quote">
<div lang="EN-US" vlink="purple" link="blue">
<div>
<p style="TEXT-ALIGN: left; DIRECTION: ltr" class="MsoNormal">Hi,</p>
<p style="TEXT-ALIGN: left; DIRECTION: ltr" class="MsoNormal">I would like to write a code the suspends all &quot;other&quot; 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).</p>

<p style="TEXT-ALIGN: left; DIRECTION: ltr" class="MsoNormal">Obviously, I want only the threads I started to suspend and not to change the state of the interpreters threads.</p>
<p style="TEXT-ALIGN: left; DIRECTION: ltr" class="MsoNormal">Is there a way to do this in IronPython?</p>
<p style="TEXT-ALIGN: left; DIRECTION: ltr" class="MsoNormal"> </p>
<p style="TEXT-ALIGN: left; DIRECTION: ltr" class="MsoNormal">Thanks.</p></div></div><br>_______________________________________________<br>Users mailing list<br><a href="mailto:Users@lists.ironpython.com">Users@lists.ironpython.com</a><br>
<a href="http://lists.ironpython.com/listinfo.cgi/users-ironpython.com" target="_blank">http://lists.ironpython.com/listinfo.cgi/users-ironpython.com</a><br><br></blockquote></div><br>