首页>
外国专利>
PRECISE ACCOUNTING OF PROCESSOR TIME FOR MULTI-THREADED TIME-CRITICAL APPLICATIONS
PRECISE ACCOUNTING OF PROCESSOR TIME FOR MULTI-THREADED TIME-CRITICAL APPLICATIONS
展开▼
机译:多重时间关键应用程序中的处理器时间的精确计算
展开▼
页面导航
摘要
著录项
相似文献
摘要
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.
展开▼