You need to modify your DataManager class in a Thred !! e.g.
public class DataManagerThread extends Thread {
private String currentURL = "";
public DataManagerThread(Vector urllist){
//Create object of URLReader.
}
public void execute(){
//Iterate thru the Vector and call start() for each element.
DataManagerThread t = new DataManagerThread();
t.currentURL = "Current URL from Vector"
t.start();
}
public void run(){
// call URLReader.execute(t.currentURL)
}
}
P.S. Before instantiating these threads, you must check whether the URLs (in the Vector urllist) are unique,
so that you don't end up in a deadlock situation (Two threads reading the same resource
)