Starvation

Description

Demonstrates an effective technique to manage Windows starvation.  A real-time CPU bound thread is periodically suspended for short periods of time to provide a specified amount of time to Windows.  The period and duty factor can be adjusted to analyze Windows and application behavior (such as a GUI application's responsiveness) under different real-time loads.

Source Files

Starvation project source file:

Remarks

The starvation program can be built as an .rtss or .exe executable binary file and run in the real-time or Win32 environment.

Also see Starvation Management.

APIs Referenced

RTAPI

Win32 APIs

RtCreateTimer

RtDeleteTimer

RtSetThreadPriority

RtSetTimerRelative

RtSleepFt

CreateThread

ResumeThread

SuspendThread

 

IntervalZero.com | Support | Give Feedback