Mercurial > cpython-lru_cache-weakref
diff Doc/lib/libthread.tex @ 2527:815dfaa6a778 legacy-trunk
small changes by Soren Larsen
| author | Guido van Rossum <guido@python.org> |
|---|---|
| date | Mon, 13 Mar 1995 10:03:32 +0000 |
| parents | 5257af80e161 |
| children | f47bc5554418 |
line wrap: on
line diff
--- a/Doc/lib/libthread.tex Fri Mar 10 16:19:31 1995 +0000 +++ b/Doc/lib/libthread.tex Mon Mar 13 10:03:32 1995 +0000 @@ -2,14 +2,14 @@ \bimodindex{thread} This module provides low-level primitives for working with multiple -threads (a.k.a. \dfn{light-weight processes} or \dfn{tasks}) --- multiple +threads (a.k.a.\ \dfn{light-weight processes} or \dfn{tasks}) --- multiple threads of control sharing their global data space. For -synchronization, simple locks (a.k.a. \dfn{mutexes} or \dfn{binary +synchronization, simple locks (a.k.a.\ \dfn{mutexes} or \dfn{binary semaphores}) are provided. The module is optional and supported on SGI IRIX 4.x and 5.x and Sun Solaris 2.x systems, as well as on systems that have a PTHREAD -implementation (e.g. KSR). +implementation (e.g.\ KSR). It defines the following constant and functions: @@ -21,7 +21,7 @@ \begin{funcdesc}{start_new_thread}{func\, arg} Start a new thread. The thread executes the function \var{func} with the argument list \var{arg} (which must be a tuple). When the -function returns, the thread silently exits. When the function raises +function returns, the thread silently exits. When the function terminates with an unhandled exception, a stack trace is printed and then the thread exits (but other threads continue to run). \end{funcdesc} @@ -59,7 +59,7 @@ unconditionally, if necessary waiting until it is released by another thread (only one thread at a time can acquire a lock --- that's their reason for existence), and returns \code{None}. If the integer -\var{waitflag} argument is present, the action depends on its value: +\var{waitflag} argument is present, the action depends on its value:\ if it is zero, the lock is only acquired if it can be acquired immediately without waiting, while if it is nonzero, the lock is acquired unconditionally as before. If an argument is present, the @@ -72,7 +72,7 @@ \end{funcdesc} \begin{funcdesc}{locked}{} -Return the status of the lock: 1 if it has been acquired by some +Return the status of the lock:\ 1 if it has been acquired by some thread, 0 if not. \end{funcdesc}
