首页> 外国专利> Measuring by the kernel the amount of time a monitored thread spends in a queue in order to monitor scheduler delays in a computing device

Measuring by the kernel the amount of time a monitored thread spends in a queue in order to monitor scheduler delays in a computing device

机译:内核测量被监视线程在队列中花费的时间量,以监视计算设备中的调度程序延迟

摘要

In general, techniques of this disclosure relate to measuring scheduling performance of monitored threads in an operating system with improved precision. In one example, a method includes inserting, by an operating system kernel, a monitored thread into a queue comprising one or more threads and recording an insertion time that the monitored thread is inserted into the run queue; receiving, by the kernel, an event to remove the monitored thread from the run queue; responsive to receiving the event, determining, by the kernel, an amount of time that the monitored thread is stored on the run queue based on the insertion time and a removal time at which the monitored thread was removed from the run queue; and when the amount of time the monitored thread is stored on the run queue is greater than or equal to a specified threshold, sending a notification to a notification listener.
机译:通常,本公开的技术涉及以改进的精度来测量操作系统中的受监视线程的调度性能。在一个示例中,一种方法包括:由操作系统内核将被监视的线程插入包括一个或多个线程的队列中,并记录被监视的线程被插入到运行队列中的插入时间;以及内核接收事件以从运行队列中删除受监视线程;响应于接收到该事件,由内核基于插入时间和从运行队列中删除被监视线程的移除时间,确定被监视线程在运行队列中存储的时间;当被监视线程存储在运行队列中的时间大于或等于指定阈值时,向通知监听器发送通知。

著录项

相似文献

  • 专利
  • 外文文献
  • 中文文献
获取专利

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号