@@ -8,9 +8,9 @@ \section{Built-in Module \sectcode{thread}}
88synchronization, simple locks (a.k.a.\ \dfn {mutexes} or \dfn {binary
99semaphores}) are provided.
1010
11- The module is optional and supported on SGI IRIX 4.x and 5.x and Sun
12- Solaris 2.x systems , as well as on systems that have a PTHREAD
13- implementation (e.g. \ KSR) .
11+ The module is optional. It is supported on Windows NT and '95, SGI
12+ IRIX, Solaris 2.x, as well as on systems that have a POSIX thread
13+ (a.k.a. `` pthread '' ) implementation .
1414
1515It defines the following constant and functions:
1616
@@ -91,12 +91,28 @@ \section{Built-in Module \sectcode{thread}}
9191always go to the main thread.)
9292
9393\item
94- Calling \code {sys.exit()} or raising the \code {SystemExit} is
94+ Calling \code {sys.exit()} or raising the \code {SystemExit} exception is
9595equivalent to calling \code {thread.exit_thread()}.
9696
9797\item
9898Not all built-in functions that may block waiting for I/O allow other
9999threads to run. (The most popular ones (\code {sleep}, \code {read},
100100\code {select}) work as expected.)
101101
102+ \item
103+ It is not possible to interrupt the \code {acquire()} method on a lock
104+ -- the \code {KeyboardInterrupt} exception will happen after the lock
105+ has been acquired.
106+
107+ \item
108+ When the main thread exits, it is system defined whether the other
109+ threads survive. On SGI IRIX using the native thread implementation,
110+ they survive. On most other systems, they are killed without
111+ executing `` try-finally'' clauses or executing object destructors.
112+
113+ \item
114+ When the main thread exits, it doesn't do any of its usual cleanup
115+ (except that `` try-finally'' clauses are honored), and the standard
116+ I/O files are not flushed.
117+
102118\end {itemize }
0 commit comments