previous | start | next

Self Check

  1. What happens if you change the call to the sleep method in the run method to Thread.sleep(1)?
  2. What would be the result of the program if the main method called
    r1.run();
    r2.run();
    instead of starting threads?

previous | start | next