Suppose that an operating system provides two functions, block() which puts the calling process on the blocked queue, and wakeup(P) which moves process P to the ready queue if it is currently on the blocked queue. wakeup(P) does not perform any action if the process P is NOT in the blocked queue.
Consider two processes A and B running the code given below.
![](https://gateoverflow.in/?qa=blob&qa_blobid=14012124098430846366)
Which of the following is TRUE regarding the behaviour of the system when we run A and B concurrently on the uni-processor system?
- It is possible to have deadlock in the system.
- A and B will always run forever with strick alternation printing ABABAB….
- A and B will always run forever with strick alternation printing BABABA….
- None of these