Question: public class Main { public static void main(String[] args) { // TODO code application logic here ServerThread thread = new ServerThread(Server1); ServerThread thread2 = new
public class Main { public static void main(String[] args) { // TODO code application logic here ServerThread thread = new ServerThread("Server1"); ServerThread thread2 = new ServerThread("Server2"); ServerThread thread3 = new ServerThread("Server3"); thread3.setPriority(Thread.MAX_PRIORITY);// the topmost priority thread2.setPriority(Thread.MIN_PRIORITY); // server 2 gers least priority System.out.println(); System.out.println(); thread3.start(); thread.start(); thread2.start(); //thread.start(); } }
The code template of Assignment2 is provided above. Few statements are missing.
Fill in the statements and code:
To run 6 server threads sending data to 600 clients.
Provide MAX priority to the 5th thread and MIN priority to thread 3
Your program should be annotated.
Take screen shots of your codes and outputs, convert into jpgs or pdfs load here.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
