employer cover photo
employer logo

Question d’entretien chez VMware

Q. Implement code such that two asynchronous tasks pass on control to each other and execute their tasks. Task 1 does something and the control should pass on to Task 2 while Task 1 waits. Once Task 2 completes, control passes to Task 1 while Task 2 waits and the cycle repeats.