Dear all,
I have used Java 5/6 way to run few threads as
ExecutorService executor = Executors.newFixedThreadPool(10);
executor.submit(new MyThread());
In this case, there will be 10 threads in the thread pool.
When I submitted a thread, then one of the thread in the pool will be taken by me; After this thread is finished, it will be available again in the thread pool.
Am I right?
If it is true, then what does it mean "finished"? Does it just mean run() method finished?
Regards,
Pengyou