Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / June 2007

Tip: Looking for answers? Try searching our database.

java.util.concurrency

Thread view: 
Roedy Green - 23 Jun 2007 10:38 GMT
Is there sample code or a tutorial on how to use
java.util.concurrency?

I would like to figure out how to schedule short work packets to be
executed by perhaps 30 different threads, with some sort of mechanism
to dynamically increase or decrease the number of threads to improve
performance on that particular machine.  This is for linkvalidator
spidering program similar to Xenu.
see http://mindprod.com/jgloss/xenu.html

--
Roedy Green Canadian Mind Products
The Java Glossary
http://mindprod.com
Jeff Higgins - 23 Jun 2007 11:01 GMT
> Is there sample code or a tutorial on how to use
> java.util.concurrency?
[quoted text clipped - 5 lines]
> spidering program similar to Xenu.
> see http://mindprod.com/jgloss/xenu.html

thread multiplexing? I hope I haven't misunderstood your request.
<http://www-128.ibm.com/developerworks/library/j-nioserver/>
Roedy Green - 23 Jun 2007 12:02 GMT
On Sat, 23 Jun 2007 06:01:57 -0400, "Jeff Higgins"
<oohiggins@yahoo.com> wrote, quoted or indirectly quoted someone who
said :

>thread multiplexing? I hope I haven't misunderstood your request.
><http://www-128.ibm.com/developerworks/library/j-nioserver/>

I think I have found the beast I need. I just now have figure out how
to use it.

It is called java.util.concurrent.Executors.newCachedThreadPool
--
Roedy Green Canadian Mind Products
The Java Glossary
http://mindprod.com
Jeff Higgins - 23 Jun 2007 12:23 GMT
> I think I have found the beast I need. I just now have figure out how
> to use it.
>
> It is called java.util.concurrent.Executors.newCachedThreadPool

You should be able to find plenty on that. Sounds like fun. Good luck!


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.