Next 4.5 Other Thread Modules Prev

Other Thread Modules

Thread::Barrier

Thread barriers provide a mechanism for synchronization of multiple threads. All threads issuing a wait on the barrier will block until the count of waiting threads meets some threshold value.

Thread::Conveyor

A thread-safe data structure that mimics the behaviour of a conveyor belt. One or more worker threads can put boxes with frozen values and references on one end of the belt to be taken off by one or more worker threads on the other end of the belt to be thawed and returned.

Thread::Deadlock

Allows you to find out where your threaded application may be deadlocked.
perl -MThread::Deadlock program

Thread::Exit

Adds three features to threads. 1) exit() behaves like return(). 2) It is possible to specify thread local BEGIN equivalent. 3) And END equivalent.

Thread::Needs

Tries to reduce the memory copied when a new thread is loaded, all modules except for the requested ones are removed from a new thread.

Thread::Pool

Allows you to set up a group of (worker) threads to execute a (large) number of similar jobs that need to be executed asynchronously.

Thread::Rand

Allows you to create repeatable random sequences between different threads. Without it, repeatable random sequences can only be created within a thread.

Thread::Run

Adds three features to threads. 1) you can check whether a thread is running, 2) whether it can be joined or 3) whether it has exited without waiting for that thread to be finished. Non-blocking.

Thread::Suspend

Suspend and resume threads from another thread.

Thread::Use

Exports useit and noit pragmas.

Next Perl Threads Prev