Responsive Parallelism with Synchronization

Author:

Muller Stefan K.1ORCID,Singer Kyle2ORCID,Keeney Devyn Terra1ORCID,Neth Andrew1ORCID,Agrawal Kunal2ORCID,Lee I-Ting Angelina2ORCID,Acar Umut A.3ORCID

Affiliation:

1. Illinois Institute of Technology, USA

2. Washington University in St. Louis, USA

3. Carnegie Mellon University, USA

Abstract

Many concurrent programs assign priorities to threads to improve responsiveness. When used in conjunction with synchronization mechanisms such as mutexes and condition variables, however, priorities can lead to priority inversions, in which high-priority threads are delayed by low-priority ones. Priority inversions in the use of mutexes are easily handled using dynamic techniques such as priority inheritance, but priority inversions in the use of condition variables are not well-studied and dynamic techniques are not suitable. In this work, we use a combination of static and dynamic techniques to prevent priority inversion in code that uses mutexes and condition variables. A type system ensures that condition variables are used safely, even while dynamic techniques change thread priorities at runtime to eliminate priority inversions in the use of mutexes. We prove the soundness of our system, using a model of priority inversions based on cost models for parallel programs. To show that the type system is practical to implement, we encode it within the type systems of Rust and C++, and show that the restrictions are not overly burdensome by writing sizeable case studies using these encodings, including porting the Memcached object server to use our C++ implementation.

Funder

National Science Foundation

Publisher

Association for Computing Machinery (ACM)

Subject

Safety, Risk, Reliability and Quality,Software

Reference45 articles.

1. 2009. Memcached. https://memcached.org/ Accessed in July 2019 2009. Memcached. https://memcached.org/ Accessed in July 2019

2. Heartbeat scheduling: provable efficiency for nested parallelism

3. Oracle-guided scheduling for controlling granularity in implicitly parallel languages

4. L^ 3;Ahmed Amal;A Linear Language with Locations. Fundam. Inform.,2007

5. Provably space-efficient parallel functional programming

同舟云学术

1.学者识别学者识别

2.学术分析学术分析

3.人才评估人才评估

"同舟云学术"是以全球学者为主线,采集、加工和组织学术论文而形成的新型学术文献查询和分析系统,可以对全球学者进行文献检索和人才价值评估。用户可以通过关注某些学科领域的顶尖人物而持续追踪该领域的学科进展和研究前沿。经过近期的数据扩容,当前同舟云学术共收录了国内外主流学术期刊6万余种,收集的期刊论文及会议论文总量共计约1.5亿篇,并以每天添加12000余篇中外论文的速度递增。我们也可以为用户提供个性化、定制化的学者数据。欢迎来电咨询!咨询电话:010-8811{复制后删除}0370

www.globalauthorid.com

TOP

Copyright © 2019-2024 北京同舟云网络信息技术有限公司
京公网安备11010802033243号  京ICP备18003416号-3