DocumentCode
1853873
Title
Timestamps for programs using messages and shared variables
Author
Bechini, Alessio ; Tai, Kuo-Chung
Author_Institution
Pisa Univ., Italy
fYear
1998
fDate
26-29 May 1998
Firstpage
266
Lastpage
273
Abstract
Algorithms for vector timestamps have been developed to determine the “happened before” relations between events of an execution of a message passing program. Many message passing programs contain variables shared by multiple processes (including threads). Such programs need to have vector timestamps for send, receive, read and write events. We define two “happened-before” relations, called strong happened-before (SHB) and weak happened-before (WHB), between events of an execution involving send, receive, read and write statements. We then present two timestamp assignment algorithms, one for SHB and the other for WHB, and show how to use such timestamps to determine the SHB or WHB relation between any two events of an execution involving send, receive, read and write statements. For a program containing n processes, the size of a vector timestamp for SHB or WHB is n, regardless of the number of shared variables in the program. Finally, we show how to apply WHB timestamps to perform race analysis for programs using messages and shared variables
Keywords
message passing; parallel programming; temporal logic; SHB relation; WHB relation; WHB timestamps; happened before relations; happened-before relations; message passing program; multiple processes; race analysis; shared variables; strong happened-before; timestamp assignment algorithms; vector timestamps; weak happened-before; write events; Debugging; Electronic switching systems; Hip; Message passing; Read only memory; Testing; Yarn;
fLanguage
English
Publisher
ieee
Conference_Titel
Distributed Computing Systems, 1998. Proceedings. 18th International Conference on
Conference_Location
Amsterdam
ISSN
1063-6927
Print_ISBN
0-8186-8292-2
Type
conf
DOI
10.1109/ICDCS.1998.679522
Filename
679522
Link To Document