next up previous contents index
Next: Time Up: Topaz Interfaces Imported by Previous: Text

ThreadFriends

The ThreadFriends interface contains specialized facilities associated with the Thread interface.

 

TYPE
  Priority = [0..7];

A value of type Priority is used to control the assignment of threads to processors: threads with higher priorities are considered before threads with lower priorities. (The type ThreadFriends.Priority is actually equated to TPFriends.Priority.)

     

CONST
  BackgroundPriority = 1;
  NormalPriority = 2;
  ForegroundPriority = 3;

Only the three priorities in the range BackgroundPriority to ForegroundPriority, inclusive, should be used for threads in application programs. ForegroundPriority should be used only for brief computations, such as tracking the keyboard and mouse.



Paul McJones
8/28/1997