• Post Reply Bookmark Topic Watch Topic
  • New Topic

Need help with Basic Thread pool

 
Peter Shipway
Ranch Hand
Posts: 71
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hey yo,

I have been doing some java work with threads as of late and one thing that has constantly been popping up is thread pools.

Now whilst I understand the idea and concept I have been having trouble locating a straight forward simple and most of all COMPLETE example or tutorial somewhere on the Internet.

Everyone seems to have this idea that providing half of the code and leaving me guessing about the rest is fine, but there are a lot of blank spaces that I just can�t fill in.

What I would like to be able to do, is make a Thread Pool with 5 threads and queue that accepts unable tasks.

As always I thank anyone here for any help that can be given.
 
Henry Wong
author
Sheriff
Posts: 22516
109
C++ Chrome Eclipse IDE Firefox Browser Java jQuery Linux VI Editor Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Here's another try at it...



BTW, instead of guessing, if you have any "blank spaces", I would recommend following this topic up with a clarification question.

Henry
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!