3)Implement mutual exclusion with multithreading in Java
Build a Java program which simulates a communication between aserver and clients. You must use a thread to represent each party(as server or client).
Create three threads. One thread will act as a server, whichalways ready to receive a message from a client (ping) and thenreplies the message to the same client (pong). The other twothreads will become the clients, where each client will send amessage to the server (ping) and waits for the reply (pong). Define2 different classes to represent the server and the client.
To perform the communication, each thread will refer to a
PayPal Gateway not configured
PayPal Gateway not configured