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 12:11 AM, 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?

On Mac OS X threads (and by extension Java threads) are scheduled across all available processing cores (virtual or physical), they are not bound to any particular core.


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

Define easy :)

On Mac OS X it is safe to assume that a given threads (if it exists for an reasonable amount of time in a runnable state) will, during its life, run on all cores available in the system.

-Shawn
_______________________________________________
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.