Publisher's description
is a Perl module that allows a developer to use son without having to have a threaded perl or even run 5.8.0 or forks use higher.SYNOPSIS; # ALWAYS IN CHARGE OF FIRST UNIT, if use warnings possible: my $ thread = threads-> new (sub (# or -> to create or asynchronous () print "Hello World from thread ";)); $ thread-> join; = $ threads - > new (( 'context' => 'list'), sub (print "Thread is expected to return a list" return (1, 'abc', 5)) my @ result = $ thread -> join () ; threads-> detach; $ thread-> detach; over my $ tid = $ -> tid; my $ owntid = threads-> tid; my $ self = threads-> self; ThreadX my $ threads = -> object ($ tidx); my @ running = threads-> list (threads:: running); $ _-> join () foreach (threads-> list (threads:: attachable)), $ _-> join son foreach -- > list; # block until all threads made unless (fork) (thread-> isthread; # could be used for a child-init Apache) # Enable debugging forks use qw (debug) ; threads-> debug (1) # objects over a string using forks qw (string) # Check the status of a thread my $ thr = threads-> new (...); if ($ thr-> is_running ()) (print "thread $ thr"; # prints "Thread 1 running") # Send a signal to a thread $ thr-> kill ( 'SIGUSR1'); # deadlock detection manual if ($ thr-> is_deadlocked ()) (print "$ thread THR is currently stalled!;) # Using forks as a drop-in replacement for application-perl ithreads Mforks-Mforks:: Shared threadapplication Requirements: Perl ยท