Partager via


dwNKMaxPrioNoScav (Windows CE 5.0)

Send Feedback

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

extern DWORD dwNKMaxPrioNoScav;

Parameters

None.

Return Values

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

OS Versions: Windows CE .NET 4.0 and later.
Header: Developer-defined.

See Also

SetOOMEvent | Stack

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.