«« Next » « Previous
«« Next » « Previous

Link Details

Excuses, excuses, excuses... Login and vote now.
Link 92337 thumbnail

By jj83777
via tutorials.jenkov.com
Published: Jul 04 2008 / 02:57

This is text no. 4 in a series on multithreaded servers in Java. This text describes a thread pooled server design. Earlier designs shown in this trail are a singlethreaded and a thread-per-connection design. The series will get more server designs in the future.
  • 11
  • 0
  • 1124
  • 328

Comments

Add your comment
User 237027 avatar

AlainODea replied ago:

0 votes Vote down Vote up Reply

It would be really neat to have a load aware ExecutorService in java.util.concurrent that holds back jobs if CPU or Memory are nearly peek utilization. It would make it a lot easier than the current guesswork of establishing an arbitrary limit on a fixed thread pool.

User 131196 avatar

Jakob Jenkov replied ago:

0 votes Vote down Vote up Reply

haha, yes, that would be cool!!! But it isn't possible to read the average CPU load from Java, is it?

User 275836 avatar

albert123 replied ago:

0 votes Vote down Vote up Reply

I think you are right Jakob, in that you can't read the cpu load. However, what about setting the priority of the thread to the lowest possible?

Add your comment


Html tags not supported. Reply is editable for 5 minutes. Use [code lang="java|ruby|sql|css|xml"][/code] to post code snippets.

Voters For This Link (11)



Voters Against This Link (0)