首页> 外国专利> Method and apparatus for tracking activity of a garbage collector with a plurality of threads that operate concurrently with an application program

Method and apparatus for tracking activity of a garbage collector with a plurality of threads that operate concurrently with an application program

机译:用于跟踪具有与应用程序同时运行的多个线程的垃圾收集器的活动的方法和装置

摘要

The time cost of collecting a region in a Garbage-First garbage collector is adjusted to account for concurrent thread activity. The overhead of a concurrent thread is tracked by dividing elapsed time into relatively short time “windows” and monitoring the system during those windows to determine how long that thread is scheduled to run during those windows. Using measurements of this type for each concurrent thread, the percentage of each elapsed time window dedicated to each concurrent thread is determined. Finally, by summing the percentages of elapsed time dedicated to concurrent thread activity, the cost of collecting a region can be increased by adding the overhead attributable to concurrent activity.
机译:调整了“垃圾优先”垃圾收集器中收集区域的时间成本,以解决并发线程活动。通过将经过的时间划分为相对较短的时间“窗口”并在这些窗口中监视系统以确定该线程计划在这些窗口中运行多长时间,可以跟踪并发线程的开销。使用针对每个并发线程的这种类型的测量,可以确定专用于每个并发线程的每个经过时间窗口的百分比。最后,通过将专用于并发线程活动的经过时间百分比相加,可以通过添加归因于并发活动的开销来增加收集区域的成本。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号