title: Control execution flow of multiple threads
body: <p>I have 4 threads running, namely A, B, C, D. 
  Depending on some input condition, the execution sequence is to vary. 
  For ex - for Input "0", sequence would be A->C->B-D
  for Input "1", sequence would be A->D->B-C</p>