Can anyone know how to do this with proper working code and explanation Q: Given two threads, execute one thread after another k times without stopping the threads.