Sophie

Sophie

distrib > Fedora > 14 > x86_64 > by-pkgid > f448deafa1de20c56618e7ac9c6ef5d7 > files > 155

Falcon-doc-0.9.6.6-1.fc14.noarch.rpm

<html>
<head>
   <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
   <title>Falcon Feathers - The Standard Modules Reference. - Threading module and VM Interruption protocol </title>
   <link href="faldoc.css" rel="stylesheet" type="text/css"/>
   <link href="tabs.css" rel="stylesheet" type="text/css"/>
</head>
<body class="faldoc_body">
<div class="navitop">
   <div class="tabs">
      <ul>
         <li><a href="./index.html"><span>Main</span></a></li>
         <li><a href="./modules.html"><span>Modules</span></a></li>
         <li><a href="./pages.html"><span>Related pages</span></a></li>
         <li><a href="./groups.html"><span>Groups</span></a></li>
         <li><a href="./classes.html"><span>Classes</span></a></li>
         <li><a href="./objects.html"><span>Objects</span></a></li>
         <li><a href="./functions.html"><span>All functions</span></a></li>
         <li><a href="./enum.html"><span>Enumerations</span></a></li>
         
      </ul>
   </div>
</div>
<hr/>

<h1 class="faldoc_title">Threading module and VM Interruption protocol </h1>



<p class="faldoc_text">Interruptible operations will raise an InterruptedError if they receive an asynchronous interruption request from another thread while ingaged in a lengthy wait. </p>
<p class="faldoc_text">The Thread.wait method conforms to the VM Interruption protocol, along with other operations that are declared by the core module or by other extensions. Other interruptible operations are, currently: </p>
<ul>
<li>sleep function. </li><li>Stream.readAvailable </li><li>Stream.writeAvailable </li><li>Socket.readAvailable (at the moment, only on non-windows platforms) </li><li>Socket.writeAvailable (at the moment, only on non-windows platforms) </li>
</ul>
<p class="faldoc_text">We are working to extend the protocol to other VM-level and sustem level operations. </p>
<p class="faldoc_text">Other than coming from embedding applications, interruption requests can be generated by the Thread.stop method, that will send an asynchronous interruption request to the target thread. </p>

<hr/>
<div class="navibottom">
   <center>
      <a href="./index.html">Main</a>&nbsp;&nbsp;-&nbsp;&nbsp;<a href="./modules.html">Modules</a>&nbsp;&nbsp;-&nbsp;&nbsp;<a href="./pages.html">Related pages</a>&nbsp;&nbsp;-&nbsp;&nbsp;<a href="./groups.html">Groups</a>&nbsp;&nbsp;-&nbsp;&nbsp;<a href="./classes.html">Classes</a>&nbsp;&nbsp;-&nbsp;&nbsp;<a href="./objects.html">Objects</a>&nbsp;&nbsp;-&nbsp;&nbsp;<a href="./functions.html">All functions</a>&nbsp;&nbsp;-&nbsp;&nbsp;<a href="./enum.html">Enumerations</a>
   </center>
</div>
</div>
<div class="faldoc_signature">Made with <a href="http://www.falconpl.org">faldoc 2.2.0</div>
</body>
</html>