DocumentCode :
3013628
Title :
Implementing sequentially consistent programs on processor consistent platforms
Author :
Higham, Lisa ; Kawash, Jalal
Author_Institution :
Dept. of Comput. Sci., Calgary Univ., Alta., Canada
fYear :
2004
fDate :
10-12 May 2004
Firstpage :
326
Lastpage :
331
Abstract :
This paper investigates the existence of compilers to convert programs that use shared read/write variables, with sequentially consistent memory semantics, to programs that use read/write variables with the semantics of one variant of processor consistency, known as PC-G. We first provide a simple program transformation, and prove that it compiles any 2-process program with only single-writer variables. We show that this transformation is not a general compiler for 3 or more processes; however, it does correctly transform some specific n-process programs. In particular, for the special case of the (expected) wait-free Test&Set algorithm of Tromp and Vitanyi, our transformation extends to any number of processes. Thus, one notable outcome is an implementation of Test&Set on PC-G that uses only reads and writes of shared variables. This is the first expected wait-free implementation of Test&Set on any weak memory model, and illustrates the use of randomization with a weak memory model.
Keywords :
distributed algorithms; program compilers; shared memory systems; 2-process program; compiler processes; processor consistent platforms; program conversion; program transformation; sequentially consistent memory semantics; sequentially consistent programs; shared read variables; shared write variables; single-writer variables; wait-free Test&Set algorithm; weak memory model; Algorithm design and analysis; Availability; Computer science; Distributed algorithms; Hardware; Power system modeling; Program processors; Read-write memory; Scalability; Testing;
fLanguage :
English
Publisher :
ieee
Conference_Titel :
Parallel Architectures, Algorithms and Networks, 2004. Proceedings. 7th International Symposium on
ISSN :
1087-4089
Print_ISBN :
0-7695-2135-5
Type :
conf
DOI :
10.1109/ISPAN.2004.1300500
Filename :
1300500
Link To Document :
بازگشت