Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.programmer > #16683 > unrolled thread

How can you make idle processors pick up java work?

Started bylbrtchx@gemale.com
First post2012-07-30 22:01 +0000
Last post2012-07-31 04:16 -0700
Articles 4 — 4 participants

Back to article view | Back to comp.lang.java.programmer


Contents

  How can you make idle processors pick up java work? lbrtchx@gemale.com - 2012-07-30 22:01 +0000
    Re: How can you make idle processors pick up java work? Joshua Cranmer <Pidgeot18@verizon.invalid> - 2012-07-30 18:20 -0400
    Re: How can you make idle processors pick up java work? markspace <-@.> - 2012-07-30 15:39 -0700
    Re: How can you make idle processors pick up java work? Roedy Green <see_website@mindprod.com.invalid> - 2012-07-31 04:16 -0700

#16683 — How can you make idle processors pick up java work?

Fromlbrtchx@gemale.com
Date2012-07-30 22:01 +0000
SubjectHow can you make idle processors pick up java work?
Message-ID<jv706v$l6n$1@speranza.aioe.org>
 How can you make idle processors pick up java work?
~ 
 While running top I noticed that most processors running the same executing java instance are idle
~ 
// __ 4 processors + 4Gb RAM 
~ 
 http://hsymbolicus.wordpress.com/?attachment_id=418
~ 
// __ 8 processors + 32Gb RAM 
~ 
 http://hsymbolicus.wordpress.com/?attachment_id=419
~ 
 I need to work on vast amounts of data.
~ 
 Is there a way to make these processors pick up/share work also, or do you have to use some sort of scheduling framework on top of java?
~ 
 lbrtchx 
 comp.lang.java.programmer: How can you make idle processors pick up java work?

[toc] | [next] | [standalone]


#16684

FromJoshua Cranmer <Pidgeot18@verizon.invalid>
Date2012-07-30 18:20 -0400
Message-ID<jv71ca$ekv$1@dont-email.me>
In reply to#16683
On 7/30/2012 6:01 PM, lbrtchx@gemale.com wrote:
> Is there a way to make these processors pick up/share work also, or
> do you have to use some sort of scheduling framework on top of java?

Use multiple threads?

-- 
Beware of bugs in the above code; I have only proved it correct, not
tried it. -- Donald E. Knuth

[toc] | [prev] | [next] | [standalone]


#16686

Frommarkspace <-@.>
Date2012-07-30 15:39 -0700
Message-ID<jv72eq$k41$1@dont-email.me>
In reply to#16683
On 7/30/2012 3:01 PM, lbrtchx@gemale.com wrote:

> Is there a way to make these processors pick up/share work also, or
> do you have to use some sort of scheduling framework on top of java?


I have to echo Joshua's comment.  What are you doing now that you expect 
a JVM to be executing more than one thread?  The full protocol stack 
would be good to know, as well as any frameworks you are currently 
using.  Some are multi-threaded, some aren't.

[toc] | [prev] | [next] | [standalone]


#16702

FromRoedy Green <see_website@mindprod.com.invalid>
Date2012-07-31 04:16 -0700
Message-ID<njff181gbjgveonrnqout5q78gvk3e98qq@4ax.com>
In reply to#16683
On Mon, 30 Jul 2012 22:01:03 +0000 (UTC), lbrtchx@gemale.com wrote,
quoted or indirectly quoted someone who said :

> How can you make idle processors pick up java work?

You need multiple threads. There is no way two processors can gang up
to boost the same thread.

See http://mindprod.com/jgloss/thread.html
-- 
Roedy Green Canadian Mind Products
http://mindprod.com
The greatest shortcoming of the human race is our inability to understand the exponential function. 
 ~ Dr. Albert A. Bartlett (born: 1923-03-21 age: 89)
http://www.youtube.com/watch?v=F-QA2rkpBSY

[toc] | [prev] | [standalone]


Back to top | Article view | comp.lang.java.programmer


csiph-web