Responsive Parallelism with Synchronization
Responsive Parallelism with Synchronization
复制标题
响应式并行与同步
DOI:
10.1145/3591249
复制
发表时间:
2023
影响因子:
--
通讯作者:
Acar, Umut A.
中科院分区:
文献类型:
--
作者:
Muller, Stefan K.;Singer, Kyle;Keeney, Devyn Terra;Neth, Andrew;Agrawal, Kunal;Lee, I-Ting Angelina;Acar, Umut A.
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.
登录
查看更多内容
DOI:
10.1145/3062341.3062370
发表时间:
2017
期刊:
Proceedings of the 38th ACM SIGPLAN Conference on Programming Language Design and Implementation
影响因子:
--
作者:
Stefan K. Muller;Umut A. Acar;R. Harper
通讯作者:
R. Harper
DOI:
--
发表时间:
1999
期刊:
ACM-SIGACT Symposium on Principles of Programming Languages
影响因子:
--
作者:
Karl Crary;D. Walker;G. Morrisett
通讯作者:
G. Morrisett
DOI:
10.1145/3385412.3386013
发表时间:
2020
期刊:
Proceedings of the 41st ACM SIGPLAN Conference on Programming Language Design and Implementation
影响因子:
--
作者:
Muller, Stefan K.;Singer, Kyle;Goldstein, Noah;Acar, Umut A.;Agrawal, Kunal;Lee, I-Ting Angelina
通讯作者:
Lee, I-Ting Angelina
DOI:
10.1145/232627.232650
发表时间:
1996
期刊:
Proceedings of the 19th International Symposium on Principles and Practice of Declarative Programming
影响因子:
--
作者:
G. Blelloch;John Greiner
通讯作者:
John Greiner
DOI:
10.1145/224164.224210
发表时间:
1995
期刊:
Proceedings 16th Annual IEEE Symposium on Logic in Computer Science
影响因子:
--
作者:
G. Blelloch;John Greiner
通讯作者:
John Greiner