Re: LWP & threads....
jack velte (jackv@earthling.net)
Sat, 31 Jul 1999 00:35:38 -0400
my solution was to create a local socket server (perl cookbook 'non-blocking
server' for win98) that sends and receives messages from other perl
processes. the main routine starts up four [identical code - different
data] children which loop through the sites they're interested in and report
interesting results to the parent. the parent is responsible for displaying
the information to the user.
(i bought another 128M ram chip so this would run.)
-jack
----- Original Message -----
From: Pete <petera@netstorm.net>
To: <libwww-perl@ics.uci.edu>
Sent: Friday, July 30, 1999 8:57 PM
Subject: LWP & threads....
> Question,
>
> Ive been writing a program to pull down multiple pages from multiple
> servers and place the output to a single file...
>
> Now I have been using sockets and threads to pull them down at the same
> time, but have been getting inconsistant results...
>
> So I thought I would try to use LWP...
>
> Is it possible to use threads with LWP? Everytime I try, whichever thread
> is started first dumps to the file, but the second and third threads do
> apparently nothing...
>
> Now... pulling each file in sequence would work except for the fact of
> cumulative time...
>
> Is there a way to use lwp AND threads?
>
> Pete
>