Example for 3 threads inter-communication