Re: A question of multi-thread on darwin.
site_archiver@lists.apple.com Delivered-To: darwin-dev@lists.apple.com Calvin Liu wrote: -- Greg Parker gparker@apple.com Runtime Wrangler _______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-dev mailing list (Darwin-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-dev/site_archiver%40lists.appl... 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. java-dev@lists.apple.com will know more about Mac OS X's Java implementation. This email sent to site_archiver@lists.apple.com
participants (1)
-
Greg Parker