A way to alert that crawling has finished?
I have this website downloader in visual c# which runs and finishes downloading files.
I am trying to find a way to alert that crawling has finished.
This download is multithreading.
Basically it parses URI given and find files insert those URIs in a queue.
Each thread takes one URI from the queue and start downloading it.
So I tried to count activeURICount which is a URI trying to download.
If there are no activeURI and queue is empty, I know that crawling is done.
But I am getting StackOverFlowException.
Is there another way you can think of to alert the crawling has finished?