Invention Grant
- Patent Title: Precise accounting of processor time for multi-threaded time-critical applications
-
Application No.: US16203735Application Date: 2018-11-29
-
Publication No.: US10884785B2Publication Date: 2021-01-05
- Inventor: Kelvin D. Nilsen
- Applicant: International Business Machines Corporation
- Applicant Address: US NY Armonk
- Assignee: International Business Machines Corporation
- Current Assignee: International Business Machines Corporation
- Current Assignee Address: US NY Armonk
- Agent Peter J. Edwards
- Main IPC: G06F9/48
- IPC: G06F9/48 ; G06F9/30

Abstract:
Methods and apparatus for processor time accounting for a thread executing in a multi-threaded environment are disclosed. A thread executing in an operating system receives from an operating system an allotment of time for use of a processor, and performs timed computations using the processor. Iteratively or after completing the computations, the thread determines an amount of time used by the thread based on a thread utilization counter initialized by the operating. The thread makes this determination through a user-level library function call rather than a call to the operating. The thread obtains an amount of time remaining in the allotment of time by comparing the thread utilization counter to a current CPU time using a user-level library function call.
Public/Granted literature
- US20200174827A1 PRECISE ACCOUNTING OF PROCESSOR TIME FOR MULTI-THREADED TIME-CRITICAL APPLICATIONS Public/Granted day:2020-06-04
Information query