How can you make idle processors pick up java work?

L

lbrtchx

From: (e-mail address removed)

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?

--- BBBS/Li6 v4.10 Dada-1
* Origin: Prism bbs (1:261/38)
--- Synchronet 3.16a-Win32 NewsLink 1.98
Time Warp of the Future BBS - telnet://time.synchro.net:24
 
J

Joshua Cranmer

To: lbrtchx
From: Joshua Cranmer <[email protected]>

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

--- BBBS/Li6 v4.10 Dada-1
* Origin: Prism bbs (1:261/38)
--- Synchronet 3.16a-Win32 NewsLink 1.98
Time Warp of the Future BBS - telnet://time.synchro.net:24
 
M

markspace

To: lbrtchx
From: markspace <-@.>

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.

--- BBBS/Li6 v4.10 Dada-1
* Origin: Prism bbs (1:261/38)
--- Synchronet 3.16a-Win32 NewsLink 1.98
Time Warp of the Future BBS - telnet://time.synchro.net:24
 
R

Roedy Green

To: lbrtchx
From: Roedy Green <[email protected]>

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)

--- BBBS/Li6 v4.10 Dada-1
* Origin: Prism bbs (1:261/38)
--- Synchronet 3.16a-Win32 NewsLink 1.98
Time Warp of the Future BBS - telnet://time.synchro.net:24
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,578
Members
45,052
Latest member
LucyCarper

Latest Threads

Top