Making a Thread Pool
hi,
I need to know if its possible to make a thread pool in java where the size of the threads in pool varies by user input (basically on the work load but is not Dynamic say only like 3 variables 10,15,20 threads )
The threads do not behave in a FIFO method. I mean like say thread 7 has finished the work so it doesn't wait until thread 6 is finished to put the output to the output queue. when its done it will give the output the queue then waits for further inputs..
Im all confused with this concept. Any help on some sample codes like how to make a simple thread queue.. or anything would be greatly appreciated.
Thank you
Cheers.

