From non-preemptive to preemptive scheduling using synchronization synthesis

Černý, Pavol and Clarke, Edmund M and Henzinger, Thomas A and Radhakrishna, Arjun and Ryzhyk, Leonid and Samanta, Roopsha and Tarrach, Thorsten (2016) From non-preemptive to preemptive scheduling using synchronization synthesis. Formal Methods in System Design. ISSN 0925-9856

[img] Text
s10703-016-0256-5.pdf - Published Version
Available under License Creative Commons Attribution.
[IST-2016-656-v1+1]
Download (1382Kb)
Official URL: http://dx.doi.org/10.1007/s10703-016-0256-5

Abstract

We present a computer-aided programming approach to concurrency. The approach allows programmers to program assuming a friendly, non-preemptive scheduler, and our synthesis procedure inserts synchronization to ensure that the final program works even with a preemptive scheduler. The correctness specification is implicit, inferred from the non-preemptive behavior. Let us consider sequences of calls that the program makes to an external interface. The specification requires that any such sequence produced under a preemptive scheduler should be included in the set of sequences produced under a non-preemptive scheduler. We guarantee that our synthesis does not introduce deadlocks and that the synchronization inserted is optimal w.r.t. a given objective function. The solution is based on a finitary abstraction, an algorithm for bounded language inclusion modulo an independence relation, and generation of a set of global constraints over synchronization placements. Each model of the global constraints set corresponds to a correctness-ensuring synchronization placement. The placement that is optimal w.r.t. the given objective function is chosen as the synchronization solution. We apply the approach to device-driver programming, where the driver threads call the software interface of the device and the API provided by the operating system. Our experiments demonstrate that our synthesis method is precise and efficient. The implicit specification helped us find one concurrency bug previously missed when model-checking using an explicit, user-provided specification. We implemented objective functions for coarse-grained and fine-grained locking and observed that different synchronization placements are produced for our experiments, favoring a minimal number of synchronization operations or maximum concurrency, respectively.

Item Type: Article
Uncontrolled Keywords: synthesis, concurrency, NFA language inclusion, MaxSAT
Subjects: 000 Computer science, knowledge & general works > 000 Computer science, knowledge & systems
Research Group: Henzinger Group
SWORD Depositor: Sword Import User
Depositing User: Sword Import User
Date Deposited: 09 Nov 2016 15:12
Last Modified: 09 Nov 2016 15:12
URI: https://repository.ist.ac.at/id/eprint/656

Actions (login required)

View Item View Item