Start the same program on two machines.
There are two ways: by extending the Thread class or by implementing the Runnable interface and instantiating the Thread object with the Runnable object as an argument.
Create the Thread object and run it simultaneously with the Runnable object.
|