WHERE IS TIME SPENT IN MESSAGE-PASSING AND SHARED-MEMORY PROGRAMS

Citation
S. Chandra et al., WHERE IS TIME SPENT IN MESSAGE-PASSING AND SHARED-MEMORY PROGRAMS, ACM SIGPLAN NOTICES, 29(11), 1994, pp. 61-73
Citations number
23
Categorie Soggetti
Computer Sciences","Computer Science Software Graphycs Programming
Journal title
Volume
29
Issue
11
Year of publication
1994
Pages
61 - 73
Database
ISI
SICI code
Abstract
Message passing and shared memory are two techniques parallel programs use for coordination and communication. This paper studies the streng ths and weaknesses of these two mechanisms by comparing equivalent, we ll-written message-passing and shared-memory programs running on simil ar hardware. To ensure that our measurements are comparable, we produc ed two carefully tuned versions of each program and measured them on c losely-related simulators of a message-passing and a shared-memory mac hine, both of which are based on same underlying hardware assumptions. We examined the behavior and performance of each program carefully. A lthough the cost of computation in each pair of programs was similar, synchronization and communication differed greatly. We found that mess age-passing's advantage over shared-memory is not clear-cut. Three of the four shared-memory programs ran at roughly the same speed as their message-passing equivalent, even though their communication patterns were different.