Sophie

Sophie

distrib > Fedora > 15 > i386 > by-pkgid > e3918135d52936bad0ecc8654eedea12 > files > 220

Falcon-doc-0.9.6.8-1.fc15.noarch.rpm

<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html
     PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en" >
<head><meta content="text/html;charset=&amp;quot;utf-8&amp;quot;" http-equiv="Content-type"/><link href="faldoc.css" rel="stylesheet" type="text/css"/><title> - Threading module and VM Interruption protocol</title></head><body class="faldoc"><ul class="navi_top"><li class="top"><a href="index.html">Top: Table of contents</a></li>
         <li class="up"><a href="feathers_threading.html">Up: Multithreading</a></li>
         <li class="prev"><a href="feathers_threading_threading_warnings.html">Previous: Multithreading safety</a></li>
         <li class="next"><a href="feathers_threading_waiting_funcs.html">Next: Waitings</a></li>
         <li class="clear"></li>
         </ul><div id="page_body"><h1><span class="toc_number">2.13.3</span>Threading module and VM Interruption protocol</h1><p> </p>
<p>Interruptible operations will raise an InterruptedError if they receive an asynchronous interruption request from another thread while ingaged in a lengthy wait. </p>
<p>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: <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>
<p>We are working to extend the protocol to other VM-level and sustem level operations. </p>
<p>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>
</div><ul class="navi_bottom"><li class="top"><a href="index.html">Top: Table of contents</a></li>
         <li class="up"><a href="feathers_threading.html">Up: Multithreading</a></li>
         <li class="prev"><a href="feathers_threading_threading_warnings.html">Previous: Multithreading safety</a></li>
         <li class="next"><a href="feathers_threading_waiting_funcs.html">Next: Waitings</a></li>
         <li class="clear"></li>
         </ul><div class="signature">Made with <a href="faldoc 3.0">http://www.falconpl.org</a></div></body></html>