Java multi CPU capabilities

William Muriithi william.muriithi-Re5JQEeQqe8AvxtiuMwx3w at public.gmane.org
Wed Aug 28 23:26:59 UTC 2013


> | Just curious if anyone here has ever looked at getting Java to run on
more
> | than one CPU.
> |
> | I have looked around and concluded that's not possible natively.
>
> What do you mean by "natively"?
>
Apparently Java has two types of switches, the green and native switch. The
native can only use one kernel thread which essentially mean one CPU.
> | Posting
> | more or less for confirmation. Would I have missed anything?
> |
> | Found it an odd problem for a application to have at this time, really
its
> | 2013
> |
> | http://www.datadisk.co.uk/html_docs/java_app/jboss5/jboss5_tuning.htm
>
> I don't know what you mean.  Here's a sentence from this article that
> says Java can exploit mutiple CPUs:
>
Totally see why I sound lost. I possibly don't what I am taking about but I
have checked cacti graphs at work and all seem to max up on one CPU.

Google a bit and you will see a lot of people having that problem.  Java
can use multiple CPU together for garbage collection but the application
side, its only one CPU as far as I can tell
>     Having multiple CPU's works well with Java threads, as they don't
>     have to wait for long before getting onto a CPU, however there can
>     be a problem by using too many CPU's for a thread this is called
>     processor affinity
> --

William
> The Toronto Linux Users Group.      Meetings: http://gtalug.org/
> TLUG requests: Linux topics, No HTML, wrap text below 80 columns
> How to UNSUBSCRIBE: http://gtalug.org/wiki/Mailing_lists
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://gtalug.org/pipermail/legacy/attachments/20130828/f6c60359/attachment.html>


More information about the Legacy mailing list