• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: A question of multi-thread on darwin.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: A question of multi-thread on darwin.


  • Subject: Re: A question of multi-thread on darwin.
  • From: Greg Parker <email@hidden>
  • Date: Tue, 12 Jun 2007 12:19:43 -0700


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: This email sent to email@hidden
  • Prev by Date: A question of multi-thread on darwin.
  • Next by Date: open() fails to update st_mtime when used with O_TRUNC and 0 byte files
  • Previous by thread: A question of multi-thread on darwin.
  • Next by thread: open() fails to update st_mtime when used with O_TRUNC and 0 byte files
  • Index(es):
    • Date
    • Thread