Changes
→Testing
===Testing===
* ThreadA prints out a few statements, calls ThreadB.join(), then prints out a few more statements. ThreadB also prints out a series of statements. We want to verify that ThreadB executes contiguously to completion before ThreadA resumes its execution.
* Have a thread attempt to join itself, and call join() on the same thread multiple times (from , and also attempt to call join on a finished thread. These should all return immediately because the same join condition was not satisfied.* Have a chain of threads. Thread C will attempt to join Thread B. Thread B will attempt to join Thread A. Thread A forks last. Verify that A executes before B, and from different threads)B executes before C.
===Pseudocode===