• Post Reply Bookmark Topic Watch Topic
  • New Topic

Thread Pooling in java  RSS feed

 
dina raj
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I need to implement thread pooling for a server socket program..Can anyone help me with an example on thread pooling?
 
Chetan Parekh
Ranch Hand
Posts: 3640
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Check this book.

It will be very helpful of you are able to download source code of the book from www.oreilly.com. Search for it.
 
Jesper de Jong
Java Cowboy
Sheriff
Posts: 16060
88
Android IntelliJ IDE Java Scala Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I already answered this somewhere else... (on the Java forums at java.sun.com).

Java 5 already has something you can use: java.util.concurrent.ThreadPoolExecutor (see the API documentation). If you don't have Java 5, search for "java thread pool" with Google and you'll find lots of information and maybe even source code.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!