Share via


ISchedulerProxy::CreateOversubscriber Method

Creates a new virtual processor root on the hardware thread associated with an existing execution resource.

virtual IVirtualProcessorRoot * CreateOversubscriber(
   _Inout_ IExecutionResource * pExecutionResource
) =0;

Parameters

  • pExecutionResource
    An IExecutionResource interface that represents the hardware thread you want to oversubscribe.

Return Value

An IVirtualProcessorRoot interface.

Remarks

Use this method when your scheduler wants to oversubscribe a particular hardware thread for a limited amount of time. Once you are done with the virtual processor root, you should return it to the resource manager by calling the Remove method on the IVirtualProcessorRoot interface.

You can even oversubscribe an existing virtual processor root, because the IVirtualProcessorRoot interface inherits from the IExecutionResource interface.

Requirements

Header: concrtrm.h

Namespace: concurrency

See Also

Reference

ISchedulerProxy Structure