dwNKMaxPrioNoScav (Windows Embedded CE 6.0)

1/5/2010

This variable defines the highest priority for a thread that should not incur stack space recovery.

Syntax

extern DWORD dwNKMaxPrioNoScav;

Parameters

None.

Return Value

None.

Remarks

Stacks can grow very large when calling functions that use large stack spaces. However, after the function is returned, the newly used stack pages might never be used again. The process of stack scavenging reclaims the unused pages from the individual thread's stack.

Any thread with a priority lower than dwNKMaxPrioNoScav can have its stack space recovered by the kernel. The default setup by the kernel is 247, the value of dwNKMaxPrioNoScav. Use this variable with the SetOOMEvent function to control when stack recover is run. If stack recover is run, dwNKMaxPrioNoScav in combination with SetOOMEvent, determines which priority stack recovery should be applied.

Requirements

Header Developer Implemented
Windows Embedded CE Windows CE .NET 4.0 and later

See Also

Reference

Optional OAL Variables
SetOOMEvent

Other Resources

Stack