Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: More multiprocessing questions




On Jul 17, 2006, at 9:11 , bsd5tu1 wrote:

Thanks for all the responses everyone. Quite helpful.

Here are some more questions I've thought of about using a multi- procesing machine with Java:

1. When a thread gets assigned to a given processor, is it tied to that processor until it's death, or does the Kernel and/or JVM have the ability to re-assign the thread to the other processor while it's active? For example, suppose I write a Java application with 10 threads, and all of a sudden one of them starts throwing a ton of work to something like the event dispatching thread. Assuming the EDT would be tied to a processor, could the kernel or JVM switch some (or all) of the other threads to the other processor while active.

2. Is there a relatively easy way to monitor which thread is on which processor?

Thanks.

These things are not part of the Java specs, AFAIK. So we have to learn what every single operating system does (in this case Mac OS X).


--
Fabrizio Giudici, Ph.D. - Java Architect, Project Manager
Tidalwave s.a.s. - "We make Java work. Everywhere."
http://www.tidalwave.it/blog - email@hidden
mobile: +39 348.150.6941 - fax: +39 027.005.105.36


_______________________________________________ Do not post admin requests to the list. They will be ignored. Java-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/java-dev/email@hidden

This email sent to email@hidden
References: 
 >More multiprocessing questions (From: bsd5tu1 <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.