Perl threads tutorial (threads)
Old Perl threads tutorial (Thread)
Note that Perl 5.7+ has a new thread implementation, called ithreads, in the module "threads", and you still can access the old implementation, in the module Thread.
I don't know if the module Thread::Queue will work with ithreads (threads), since this module was inside the old way (Thread)!
You can see in the end of Thread POD, this comments on "See Also":
threads::shared (not available with 5005threads)
attributes, Thread::Queue, Thread::Semaphore, Thread::Specific (not available with ithreads)
Take a look at threads::share and the lock() function for a safe way to work with a shared list (since Thread::Queue is for a shared data structure, like a list).
Graciliano M. P.
"The creativity is the expression of the liberty".
In reply to Re: Thread::Queue and Memory
by gmpassos
in thread Thread::Queue and Memory
by petesmiley
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |