Hi all,
I am currently trying (and now wondering if) you can add multiple threads to a program to do the same job? Basically I am writing a web crawler for a search engine and it adds many URLs to an ArrayList which is used as a queue. I add a few links to start and open each with jsoup, checking if each link is in the queue and if not adding it (to have it's links taken out). This process works but ends up at about a queue of 3000 before it starts working down. Can I add multithreading to my program to end it quicker? I have used multi threading before but not in this context and am unsure where to start. I am happy to post my program if needed (the whole thing is only about 70 lines long). Thanks