R
Ricardo
Hi...
I'm doing a program that analise a web page for a string, if found it
register that page, and if it found any links on that page, it follows the
link and searsh it for the string, and so on.
The problem is that I want to delimit this process to only 5 pages to be
processed at a time. I think of using a queue, and when the one of the 5
treads end processing the page, pick another link on the queue and start
processing again.
But how can I do that??? I need some mechanism that tells me when a thread
finished so I can start another...
Do you all have any idea that can help me???
[]s...
I'm doing a program that analise a web page for a string, if found it
register that page, and if it found any links on that page, it follows the
link and searsh it for the string, and so on.
The problem is that I want to delimit this process to only 5 pages to be
processed at a time. I think of using a queue, and when the one of the 5
treads end processing the page, pick another link on the queue and start
processing again.
But how can I do that??? I need some mechanism that tells me when a thread
finished so I can start another...
Do you all have any idea that can help me???
[]s...