跳到主要导航 跳到搜索 跳到主要内容

Comparative Modeling and Verification of Pthreads and Dthreads

  • East China Normal University

科研成果: 书/报告/会议事项章节 › 会议稿件 › 同行评审

摘要

The POSIX threads (Pthreads) library is a thread API for C/C++ to control parallel threads and spawn concurrent process flows. Programming in Pthreads usually suffers from undesirable deadlock and data race problems due to the potential non-deterministic execution behaviors between parallel threads. Dthreads is another multithreading model re-implementing Pthreads, which was proposed by Liu et al. for efficient deterministic multithreading. Under specific test cases, they found out that Dthreads can effectively prevent data races. But they have not made comparison test with Pthreads. In order to formally compare Pthreads with Dthreads over deadlocks and data races, in this paper, we apply CSP (Communicating Sequential Processes) to model part of APIs in Pthreads and Dthreads, as well as two classical example programs. By using the model checker PAT (Process Analysis Toolkit), for our considered examples, we verify that deadlocks and data races exist in Pthreads, but do not exist in Dthreads. Our comparative modeling and verification of Pthreads and Dthreads show that Dthreads is better than Pthreads on eliminating data races and preventing deadlocks.

源语言英语
主期刊名Proceedings - 17th IEEE International Symposium on High Assurance Systems Engineering, HASE 2016
编辑Radu Babiceanu, Helene Waeselynck, Jie Xu, Raymond A. Paul, Bojan Cukic
出版商IEEE Computer Society
页132-140
页数9
ISBN(电子版)9781467399128
DOI
出版状态已出版 - 1 3月 2016
活动17th IEEE International Symposium on High Assurance Systems Engineering, HASE 2016 - Orlando, 美国
期限: 7 1月 2016 → 9 1月 2016

丛书

姓名Proceedings of IEEE International Symposium on High Assurance Systems Engineering
卷2016-March
ISSN(印刷版)1530-2059

会议

会议17th IEEE International Symposium on High Assurance Systems Engineering, HASE 2016
国家/地区美国
市Orlando
时期7/01/16 → 9/01/16

学术指纹

探究 'Comparative Modeling and Verification of Pthreads and Dthreads' 的科研主题。它们共同构成独一无二的学术指纹。

引用此