0
0
mirror of https://github.com/python/cpython.git synced 2024-11-28 16:45:42 +01:00
cpython/Demo/threads
Guido van Rossum a6970580d1 Added optional lock parameter to condition class.
Added mrsw (multiple-reader-single-writer) lock.
1994-05-18 08:14:04 +00:00
..
bug.py Initial revision 1994-05-16 09:35:22 +00:00
find.py
Generator.py
README Added bug.py and condition.py 1994-05-16 09:35:01 +00:00
sync.py Added optional lock parameter to condition class. 1994-05-18 08:14:04 +00:00
telnet.py
wpi.py Don't use thread.exit_prog(); set a global variable to stop other 1994-05-16 09:34:05 +00:00

This directory contains some demonstrations of the thread module.
This module is only available, optionally, for a few platforms: SGI
IRIX 4 and IRIX 5, SunOS 4 (not completely functioning), Solaris 2,
and supposedly any platform that supports Posix Threads (currently
only tested with KSR's implementation).  See ../../Python/thread.c.

These are mostly "proof of concept" type applications:

bug.py		Demonstrate a bug with importing modules in threads.
condition.py	Condition variables test by Tim Peters.
find.py		Parallelized "find(1)" (looks for directories).
Generator.py	Generator class implemented with threads.
telnet.py	Version of ../sockets/telnet.py using threads.
wpi.py		Version of ../scripts/pi.py using threads and stdwin.