// Write to the console the size of the list
System.out.printf("Main: Size of the List: %d\n",list.size());
// Create 100 PollTask objects and execute them as threads
for (int i=0; i<threads.length; i++){
PollTask task=new PollTask(list);
threads[i]=new Thread(task);
threads[i].start();
}
System.out.printf("Main: %d PollTask threads have been launched\n",threads.length);