Release_Time_Slice

include vmm.inc

VMMcall Release_Time_Slice


The Release_Time_Slice service discards any remaining time in the current time slice, and immediately starts a new time slice for the next virtual machine in the time-slice queue.

This service effectively suspends the current virtual machine. The virtual machine remains suspended until another virtual machine or a hardware interrupt calls the Wake_Up_VM service for this virtual machine.

Parameters

This service has no parameters.

Return Value

This service has no return value.

Comments

This service returns immediately (does nothing) if the current virtual machine is the only one in the time-slice queue.

Virtual devices should use this service whenever the virtual machine is idle. If the current virtual machine is a background virtual machine, this service releases the time slice and decreases the execution time by 500 milliseconds. If the current virtual machine has the execution focus, or is a high-priority background virtual machine, this service releases the time slice but does not adjust the execution time.

Uses

Flags

See Also

Adjust_Execution_Time, Get_Execution_Focus, Wake_Up_VM