3 questions with worked solutions.
Answer: II only
Time-stamp ordering guarantees conflict serializability by assigning timestamps to transactions, ensuring that they are executed in a consistent order, while also preventing deadlocks by not allowing transactions to wait for each other. In contrast, 2-phase locking can lead to deadlocks despite ensuring serializability.
Answer: Mutual exclusion but not progress
The methods used by P1 and P2 ensure that only one process can enter its critical section at a time, achieving mutual exclusion. However, if both processes are waiting for the other to leave its critical section, they can end up in a deadlock situation, which means progress is not guaranteed.
Answer: 196
In a FIFO page replacement policy with 4 frames, the first 4 distinct pages accessed will cause page faults, totaling 4. As the system accesses the next 96 distinct pages, each will also cause a page fault until the frames are filled. When accessing the same pages in reverse order, the first 4 will cause faults again, leading to a total of 196 page faults.