Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: Threading

by linux454 (Pilgrim)
on Apr 21, 2001 at 19:47 UTC ( [id://74431]=note: print w/replies, xml ) Need Help??


in reply to Threading

What I would do is put the $q->dequeue; down in the get_url subroutine;
such that:
sub get_url { my $url = $q->dequeue); get($url); print "Retrieved $url\n"; }
I'm using threads to act similar to a select or fileevent
in Perl/Tk to monitor log files so I'm in the same
boat you are in trying to learn some more about Perl Threads
But I would look into your join code and see what you can see.
Is the script holding up at Thread creation or joining?

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others examining the Monastery: (2)
As of 2024-07-21 19:30 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?
    erzuuli‥ 🛈The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.