A system is several things working together. A real time system might include computer hardware and software. Depending on where you draw the line it might include sensors and actuators reaching into the "real" world (sorry for the pun ). The software might include an operating system, or not.
A realtime operating system is a set of software components with ...
SCAN works like an elevator does. It scans down towards the nearest end and then when it hits the bottom it scans up servicing the requests that it didn't get going down. If a request comes in after it has been scanned it will not be serviced until the process comes back down or moves back up.
So in your case from 20,22 is the closest so it starts moving in ...
There is no specific order. In SCAN, C-SCAN, LOOK and C-LOOK we have to start moving towards the closest cylinders as in SSTF or you can start moving towards a direction in which there are less number of requests and then move towards the other
I think Page numbers will be given by first 5 bits and last 10 bits will give the offset. With the first 5 bit first you locate which page no. you want to go and then remaining 10 bits will tell you the offset at that page taking you at the exact location
Explanations for the truth-value of each assertion:
(1) is true because any process running P() after another process has already run P() will see y==1 and so be stuck in the do-loop. If context-switching is disabled inside P() [and we assume re-enabled on exit from P()], then the process stuck in the do-loop will be the ONLY running process, so no other ...
A single thread can get itself deadlocked by locking the same lock twice without an unlock in between. Which is obviously a stupid thing to do.
I don’t see your problem with the other cases: if one thread deadlocks itself, you have a deadlock, no matter how many other threads and locks you have.