This code basically
1. runs
Thread A, then waits until B completes
2. runs Thread B until completion, then notifies A to continue
3. continues Thread A until completion
I am trying to modify the code so that
1. runs Thread A, then waits until B completes
2. runs Thread B (half way), then notifies A to run,
then waits until Thread B completes 3. continues Thread A until completion,
then notifies B to continue 4. continues Thread B until completion