SetThreadHandicap

Sets the number of context switches a thread is permanently handicapped (delayed) before being rescheduled

Local Servers:nonblocking
Remote Servers:N/A
Classification:4.x, 5.x, 6.x
Service:Thread

Syntax

  #include <nwthread.h>  
   
  void SetThreadHandicap  (  
     int   threadID,   
     int   handicap); 
  

Parameters

threadID
(IN) Specifies a thread ID.
handicap
(IN) Specifies the number of context switches the thread waits before being put on the Run Queue.

Return Values

None

Remarks

This function sets the value used to determine the number of context switches a thread waits before being put on the Run Queue. This sets the permanent handicap.

See Also

GetThreadHandicap, ThreadSwitchWithDelay