Question: need help in Java please Report the deterministic output or all possible outputs that can be generated by the program HW_1_1_SP19 reported below. Justify your
Report the deterministic output or all possible outputs that can be generated by the program "HW_1_1_SP19" reported below. Justify your answer, by describing your motivations in terms of multi-threading issues. You can also show a thread diagram. 3 public class HW_1_1_SP19 { 4e public static void main(String[] args) throws InterruptedException { Thread t1 = new MyThread2("C"); Thread t2 - new MyThread2("B"); t1.start(); t2.start(); t1.join(); System.out.println("MAIN"); } //main 12 }//HW_1_1 SP19 14 class My Thread2 extends Thread { 15e public MyThread2(String name) { 16 super(name); }//constructor public void run() { for (int i = 0; i
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
