1With programmed IO is there a possiblity that the process m
1,With programmed I/O, is there a possiblity that the process might become stuck in an infinite loop waiting for a device? Why or why not?
2, Related to instruction processing, what are the two possible states a processor can be in? Why can\'t a processor be in both states at the same time?
Solution
Ans 1
Yes there is the example.
let there be 2 threads 1 and 2.
Thread 1 has locked a resource and waiting for input from thread 2 to release the resource
Thread 2 has locked the same resource and waiting for input from thread 1 to release the resource.
This is the deadlock situation and will result in the infinite loop and each thread is waiting for the input from the other 1 and is not releasing the resource.

