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.

[675 byte] By [AlienXa] at [2007-11-27 8:54:10]
# 1
Check out package java.util.concurrent: http://java.sun.com/javase/6/docs/api/java/util/concurrent/package-summary.html
BigDaddyLoveHandlesa at 2007-7-12 21:13:02 > top of Java-index,Java Essentials,Java Programming...
# 2
hmm thanks for the reply... I read that API page U asked... I'm kinda new to this. So it was a really confusing... :( If someone can provide some simple explanation that would be great ... :) Thanks again
AlienXa at 2007-7-12 21:13:02 > top of Java-index,Java Essentials,Java Programming...