Time monitoring in a processing element and use
First Claim
Patent Images
1. A system comprising:
- a processing element, comprising;
a clock;
a thread suspend/resume logic block, configured to suspend execution of a thread in response to a received suspend thread instruction; and
a time monitor circuit (TMC); and
a local reference clock, coupled to the processing element and to a peripheral device;
wherein the TMC is configured to;
receive an indication of a wakeup time;
monitor time via the clock until the wakeup time obtains; and
invoke the thread suspend/resume logic block to resume execution of the thread in response to the wakeup time obtaining;
wherein the TMC is further configured to discipline the clock via an external time source, wherein to discipline the clock via an external time source, the TMC is configured to discipline the clock using a global time provided by software, wherein the peripheral device is configured to provide the global time to the processing element;
wherein to provide the global time, the software is executable to retrieve a local reference time from the local reference clock that corresponds to the global time, and provide the global time and the local reference time to the processing element; and
wherein to discipline the clock, the TMC is configured to retrieve a subsequent local reference time from the local reference clock, and adjust the global time based on a difference between the subsequent local reference time and the local reference time, thereby compensating for latency due to the provision of the global time by the software.
5 Assignments
0 Petitions
Accused Products
Abstract
System and method for controlling thread execution via time monitoring circuitry in a processing element. Execution of a thread may be suspended via a thread suspend/resume logic block included in the processing element in response to a received suspend thread instruction. An indication of a wakeup time may be received to a time monitoring circuit (TMC) included in the processing element. Time may be monitored via the TMC using a clock included in the processing element, until the wakeup time obtains. The thread suspend/resume logic block included in the processing element may be invoked by the TMC in response to the wakeup time obtaining, thereby resuming execution of the thread.
4 Citations
14 Claims
-
1. A system comprising:
-
a processing element, comprising; a clock; a thread suspend/resume logic block, configured to suspend execution of a thread in response to a received suspend thread instruction; and a time monitor circuit (TMC); and a local reference clock, coupled to the processing element and to a peripheral device; wherein the TMC is configured to; receive an indication of a wakeup time; monitor time via the clock until the wakeup time obtains; and invoke the thread suspend/resume logic block to resume execution of the thread in response to the wakeup time obtaining; wherein the TMC is further configured to discipline the clock via an external time source, wherein to discipline the clock via an external time source, the TMC is configured to discipline the clock using a global time provided by software, wherein the peripheral device is configured to provide the global time to the processing element; wherein to provide the global time, the software is executable to retrieve a local reference time from the local reference clock that corresponds to the global time, and provide the global time and the local reference time to the processing element; and wherein to discipline the clock, the TMC is configured to retrieve a subsequent local reference time from the local reference clock, and adjust the global time based on a difference between the subsequent local reference time and the local reference time, thereby compensating for latency due to the provision of the global time by the software. - View Dependent Claims (2, 3, 4, 5)
-
-
6. A method, comprising:
-
receiving an indication of a wakeup time to a time monitoring circuit (TMC) comprised in a processing element; suspending execution of a thread via a thread suspend/resume logic block comprised in the processing element in response to a received suspend thread instruction; monitoring time, via the TMC using a clock comprised in the processing element, until the wakeup time obtains; and invoking the thread suspend/resume logic block via the TMC in response to the wakeup time obtaining, thereby resuming execution of the thread, the method further comprising; disciplining the clock, via the TMC via an external time source, wherein a global time provided by software is used to perform said disciplining; providing the global time to the processing element via a peripheral device, wherein a local reference clock is coupled to the processing element and to the peripheral device; retrieving, via software, a local reference time from the local reference clock that corresponds to the global time to perform said providing; wherein said disciplining comprises; retrieving, via the TMC, a subsequent local reference time from the local reference clock; and adjusting, via the TMC, the global time based on a difference between the subsequent local reference time and the local reference time, thereby compensating for latency due to the provision of the global time by software. - View Dependent Claims (7, 8, 9, 10)
-
-
11. A system comprising:
-
a processing element, comprising; a clock; a thread suspend/resume logic block, configured to suspend execution of a thread in response to a received suspend thread instruction; and a time monitor circuit (TMC); and a local reference clock, connected directly to the processing element and to a network interface controller (NIC); wherein the TMC is configured to; receive an indication of a wakeup time; monitor time via the clock until the wakeup time obtains; and invoke the thread suspend/resume logic block to resume execution of the thread in response to the wakeup time obtaining; wherein the TMC is further configured to discipline the clock via an external time source, wherein to discipline the clock via an external time source, the TMC is configured to discipline the clock using a global time provided by software, wherein to provide the global time, the software is executable to retrieve a local reference time from the local reference clock that corresponds to the global time, and provide the global time and the local reference time to the processing element; wherein to discipline the clock, the TMC is configured to retrieve a subsequent local reference time from the local reference clock, and adjust the global time based on a difference between the subsequent local reference time and the local reference time, thereby compensating for latency due to the provision of the global time by the software. - View Dependent Claims (12)
-
-
13. A method, comprising:
-
receiving an indication of a wakeup time to a time monitoring circuit (TMC) comprised in a processing element; suspending execution of a thread via a thread suspend/resume logic block comprised in the processing element in response to a received suspend thread instruction; monitoring time, via the TMC using a clock comprised in the processing element, until the wakeup time obtains; and invoking the thread suspend/resume logic block via the TMC in response to the wakeup time obtaining, thereby resuming execution of the thread, the method further comprising; disciplining the clock, via the TMC via an external time source, wherein a global time provided by software is used to perform said disciplining; providing a global time to the processing element via a network interface controller (NIC), wherein a local reference clock is connected directly to the processing element and the NIC; retrieving, via software, a local reference time from the local reference clock that corresponds to the global time to perform said providing; wherein said disciplining comprises; retrieving, via the TMC, a subsequent local reference time from the local reference clock; and adjusting, via the TMC, the global time based on a difference between the subsequent local reference time and the local reference time, thereby compensating for latency due to the provision of the global time by software. - View Dependent Claims (14)
-
Specification