Non-preemptive Semantics for Data-Race-Free Programs

Siyang Xiao,Hanru Jiang,Hongjin Liang,Xinyu Feng
DOI: https://doi.org/10.1007/978-3-030-02508-3_27
2018-01-01
Abstract:It is challenging to reason about the behaviors of concurrent programs because of the non-deterministic interleaving execution of threads. To simplify the reasoning, we propose a non-preemptive semantics for data-race-free (DRF) concurrent programs, where a thread yields the control of the CPU only at certain carefully-chosen program points. We formally prove that DRF concurrent programs behave the same in the standard interleaving semantics and in our non-preemptive semantics. We also propose a novel formulation of data-race-freedom in our non-preemptive semantics, called NPDRF, which is proved equivalent to the standard DRF notion in the interleaving semantics.
What problem does this paper attempt to address?