Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: Stability of threads in perl 5.8?

by jplindstrom (Monsignor)
on Nov 05, 2007 at 14:26 UTC ( [id://649030]=note: print w/replies, xml ) Need Help??


in reply to Stability of threads in perl 5.8?

I've done that exact thing single-threaded with File::Tail and, I'm pretty certain it was, IO::Select. More robust and less complex than threads for this particular problem I'd wager.

However, if you do use threads and need to process the content in one single place, consider isolating each File::Tail in its own thread, and (as others have mentioned) use Thread::Queue to pass values to the thread processing the data.

/J

Replies are listed 'Best First'.
Re^2: Stability of threads in perl 5.8?
by erroneousBollock (Curate) on Nov 05, 2007 at 14:34 UTC

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://649030]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others rifling through the Monastery: (4)
As of 2024-04-26 00:17 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found