schedParms

schedParms — queries or sets the OS scheduling parameters of the driver.

Synopsis

       
(schedParms [relative_priority [scheduling_policy]])
	

Parameters

relative_priority

The amount to decrease task priority. Similar to the Unix renice utility, a positive number will decrease the task priority. A negative number can be used to increase the task priority.

scheduling_policy

The OS scheduling policy to apply to the task, one of the following:

    SCHED_FIFO The driver will execute until it blocks or is preempted by a higher priority process,

    SCHED_RR The driver will be time-sliced with other processes at the same priority.

    SCHED_OTHER An alternative scheduling algorithm that decays the priority if it consumes too much processor without blocking.

Returns

(schedParms current_priority current_scheduler_policy)

Description

This command queries or sets the OS scheduling parameters for the driver process. The command is rarely needed, but may be helpful in tuning the real-time performance of the driver.

[Note]

The correctness and effectiveness of this command is OS dependent.

Example

The query:

(schedParms)

returns

(schedParms 10 SCHED_OTHER)