Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Thread Pool  RSS feed

 
kish ape
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Does anyone have code developed for Thread pooling without using Concurrent or any other utility?
I did not find any code examples which clearly defines what is required in the thread pooling manager class.
Appreciated
Thanks
 
Ulf Dittmer
Rancher
Posts: 42970
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello "akshitija"-

On your way in you may have missed that we have a policy on screen names here at JavaRanch. Basically, it must consist of a first name, a space, and a last name, and not be obviously fictitious. Since yours does not conform with it, please take a moment to change it, which you can do right here.
 
Henry Wong
author
Sheriff
Posts: 22827
119
C++ Chrome Eclipse IDE Firefox Browser Java jQuery Linux VI Editor Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by akshitija:
Does anyone have code developed for Thread pooling without using Concurrent or any other utility?
I did not find any code examples which clearly defines what is required in the thread pooling manager class.
Appreciated
Thanks


We developed a thread pool class for the previous editions of our book. This is obviously now obsolete with the introduction of the concurrent classes with JDK 1.5. However, the old examples are still available on the O'Reilly web site. Look for the "ThreadPool" class example, used somewhere in chapter 7.

Henry
[ March 29, 2006: Message edited by: Henry Wong ]
 
Stan James
(instanceof Sidekick)
Ranch Hand
Posts: 8791
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Apache Commons has a thread pool, too. I found it educational to read and pretty easy to see how it works. One part of it is a blocking queue. You don't have to roll your own any more with modern JVMs but if you're on 1.3 or older these are pretty cool little classes.
 
kish ape
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks a lot for replying.
When i searched on apache commons for thread pool it says its not released yet.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!