fence implementation (exo 5) using ipcs