Back to index
|tuple||_thread = support.import_module('_thread')|
|int||LONGSLEEP = 2|
|float||SHORTSLEEP = 0.5|
|int||NUM_THREADS = 4|
This test case provides support for checking forking and wait behavior. To test different wait behavior, override the wait_impl method. We want fork1() semantics -- only the forking thread survives in the child after a fork(). On some systems (e.g. Solaris without posix threads) we find that all active threads survive in the child after a fork(); this is an error.