Context::Oversubscribe Method
Injects an additional virtual processor into a scheduler for the duration of a block of code when invoked on a context executing on one of the virtual processors in that scheduler.
_CRTIMP static void __cdecl Oversubscribe(
bool _BeginOversubscription
);
Parameters
- _BeginOversubscription
If true, an indication that an extra virtual processor should be added for the duration of the oversubscription. If false, an indication that the oversubscription should end and the previously added virtual processor should be removed.
Remarks
Note that on a scheduler which utilizes user mode schedulable (UMS) threads, this method does not inject a new virtual processor. The UMS scheduler can detect kernel blocking and choose to run a new context on a virtual processor whose executing context blocked.
For more information on using oversubscription in your application, see Task Scheduler (Concurrency Runtime).
Requirements
Header: concrt.h
Namespace: Concurrency