首页> 外文会议>IEEE Real-Time Systems Symposium >RT.js: Practical Real-Time Scheduling for Web Applications
【24h】

RT.js: Practical Real-Time Scheduling for Web Applications

机译:RT.js:针对Web应用程序的实用实时计划

获取原文

摘要

For billions of deployed browsers, JavaScript provides the platform-independent lingua franca that enabled the triumphal march of web-based applications. Originally intended for simple UI-event processing, JavaScript comes with an event-driven programming model, where event-callback functions are executed in strict sequential order. However, with applications getting more complex and tasks becoming more computation intensive, its first-come-first-serve and run-to-completion semantic is hitting a limit, when reactions to user inputs are delayed beyond the human perception threshold. With the rise of the Internet of Things, this leads to friction-filled user experiences in everyday situations. With RT.js, we selectively introduce pseudo-preemption points into JavaScript functions and sequence the execution of event callbacks with well-known real-time scheduling policies, like EDF. Thereby, we provide a soft real-time abstraction that mitigates the described shortcomings of the JavaScript execution model without modifying the actual engine; making RT.js compatible with billions of devices. Applied to generated real-time task sets, we can almost eliminate the 30-percent deadline-miss ratios of baseline JavaScript at moderate costs. In a browser-based macro benchmark, we could diminish the influence of computation-intensive background tasks on the page-rendering performance.
机译:对于数十亿已部署的浏览器,JavaScript提供了独立于平台的通用语言,从而使基于Web的应用程序获得了胜利。 JavaScript最初旨在用于简单的UI事件处理,它附带一个事件驱动的编程模型,该模型按严格的顺序执行事件回调函数。但是,随着对用户输入的响应被延迟到超出人类感知阈值的程度,应用程序变得越来越复杂,任务的计算量也越来越大,其先到先得和运行到完成的语义正达到极限。随着物联网的兴起,这导致在日常情况下充满摩擦的用户体验。使用RT.js,我们有选择地将伪抢占点引入JavaScript函数,并使用众所周知的实时调度策略(如EDF)对事件回调的执行进行排序。因此,我们提供了一种软实时抽象,可以减轻JavaScript执行模型的上述缺点,而无需修改实际的引擎。使RT.js与数十亿个设备兼容。应用于生成的实时任务集,我们几乎可以以中等成本消除基准JavaScript的30%的截止期限丢失率。在基于浏览器的宏基准测试中,我们可以减少计算密集型后台任务对页面渲染性能的影响。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号