Skip to content

Commit 3572d37

Browse files
committed
Updated platform specific notes (it is now more common to have this)
added some caveats.
1 parent 8f06247 commit 3572d37

2 files changed

Lines changed: 40 additions & 8 deletions

File tree

Doc/lib/libthread.tex

Lines changed: 20 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@ \section{Built-in Module \sectcode{thread}}
88
synchronization, simple locks (a.k.a.\ \dfn{mutexes} or \dfn{binary
99
semaphores}) 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

1515
It defines the following constant and functions:
1616

@@ -91,12 +91,28 @@ \section{Built-in Module \sectcode{thread}}
9191
always 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
9595
equivalent to calling \code{thread.exit_thread()}.
9696

9797
\item
9898
Not all built-in functions that may block waiting for I/O allow other
9999
threads 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}

Doc/libthread.tex

Lines changed: 20 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@ \section{Built-in Module \sectcode{thread}}
88
synchronization, simple locks (a.k.a.\ \dfn{mutexes} or \dfn{binary
99
semaphores}) 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

1515
It defines the following constant and functions:
1616

@@ -91,12 +91,28 @@ \section{Built-in Module \sectcode{thread}}
9191
always 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
9595
equivalent to calling \code{thread.exit_thread()}.
9696

9797
\item
9898
Not all built-in functions that may block waiting for I/O allow other
9999
threads 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

Comments
 (0)