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: A question of multi-thread on darwin.




Calvin Liu wrote:

Recently I read a book saying that "Windows and Macintosh implementations of Java follow a time slicing approach. Solaris and other Unix implementations follow a preemptive scheduling approach." So I have some questions:

Your book is old. Mac OS X uses preemptive scheduling for Java threads and all other threads. (Mac OS Classic did use a time-slice scheduler.)



1. Does it mean changing priority of a process won't change anything on Windows/Mac because of the time slicing approach?
2. And if it happens on all BSD-based OS?
3. Where can I find details for this topic?

In general, process priority should affect Java the same way as non- Java code. Other BSD-based systems may differ, but I expect they all use preemptive threads for Java and non-Java. email@hidden will know more about Mac OS X's Java implementation.



-- Greg Parker email@hidden Runtime Wrangler


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

This email sent to 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.