Skip to content

Latest commit

 

History

History
16 lines (10 loc) · 288 Bytes

README.md

File metadata and controls

16 lines (10 loc) · 288 Bytes

ping-pong

Mutual exclusion within ring topology - Ping-Pong algorithm (Misra 1983).

How to compile and run:

mpic++ main.cpp -std=c++11
mpirun -n [proc_num] ./a.out [--ping] [--pong]

--ping and --pong turn on message lost simulation