Example of ricard-agrawala algorithm using for mutual exclusion in distributed systems