1. Checking Valid URLs

I want to enable my program to verify URLs in a particular HTML file, but I
don't want it getting stuck on one... meaning, if a particular URL is taking
too long to verify, I want the program to be checking others in the mean
time. Is this possible using EUPHORIA? Seems I would need either threads or
forks or parallel branching or MEMGOs or something like that.

new topic     » topic index » view message » categorize

2. Re: Checking Valid URLs

On Fri, May 09, 2003 at 12:30:30PM -0500, C. K. Lester wrote:
> 
> I want to enable my program to verify URLs in a particular HTML file, but I
> don't want it getting stuck on one... meaning, if a particular URL is taking
> too long to verify, I want the program to be checking others in the mean
> time. Is this possible using EUPHORIA? Seems I would need either threads or
> forks or parallel branching or MEMGOs or something like that.
> 

In Unix, the fork() call is what you need ... that will let your program
split in 2, you might have a master program and several slaves even (the
slaves
would look up the URLs, while the master would take care of feeding the
URLs and making new slaves and killing unneeded ones (or ones that took
up too much time trying to validify an URL)).

In Windows, there is no fork(), so you'll probably have to use
CreateThread()
but I'm not sure how that'd work out.

jbrown

> 
> 
> TOPICA - Start your own email discussion group. FREE!
> 
> 

-- 
 /"\  ASCII ribbon              | http://www.geocities.com/jbrown1050/
 \ /  campain against           | Linux User:190064
  X   HTML in e-mail and        | Linux Machine:84163
 /*\  news, and unneeded MIME   | 
----------------------------------------------------------------------
You too can spend five years in prison; just distribute this program
once US Senator Hollings's CBDTPA bill is passed into law:
perl -e 'while(<>) { print;}'


-- 
http://www.fastmail.fm - Choose from over 50 domains or use your own

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu