1. Checking Valid URLs
- Posted by "C. K. Lester" <cklester at yahoo.com> May 09, 2003
- 369 views
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.
2. Re: Checking Valid URLs
- Posted by jbrown105 at speedymail.org May 10, 2003
- 358 views
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