source: branches/libc-0.6/src/gcc/libobjc/THREADS.MACH

Last change on this file was 2, checked in by bird, 22 years ago

Initial revision

  • Property cvs2svn:cvs-rev set to 1.1
  • Property svn:eol-style set to native
  • Property svn:executable set to *
File size: 859 bytes
Line 
1This readme refers to the file thr-mach.c.
2
3Under mach, thread priorities are kinda strange-- any given thread has
4a MAXIMUM priority and a BASE priority. The BASE priority is the
5current priority of the thread and the MAXIMUM is the maximum possible
6priority the thread can assume. The developer can lower, but never
7raise the maximum priority.
8
9The gcc concept of thread priorities is that they run at one of three
10levels; interactive, background, and low.
11
12Under mach, this is translated to:
13
14interactive -- set priority to maximum
15background -- set priority to 2/3 of maximum
16low -- set priority to 1/3 of maximum
17
18This means that it is possible for a thread with the priority of
19interactive to actually run at a lower priority than another thread
20with a background, or even low, priority if the developer has modified
21the maximum priority.
22
23
Note: See TracBrowser for help on using the repository browser.