Consider a system with 1K pages and 512 frames and each page is of size 2 KB. How many bits are required to represent the virtual address space memory:
An operating system cotains 4 user processor each requiring 5 units of resource R. The minimum number ofrequired units of R such that no deadlock will every occur is
Minimum Number of Required Units of Resource R to Prevent Deadlock
Number of processes (P) = 4 Maximum demand per process = 5 units Formula: R≥(P−1)×max demand+1
Substituting values: R≥(4−1)×5+1=3×5+1=15+1=16 Minimum required units of resource R = 16
2
The current allocation and Maximum requirement of different types of resources for four processes are given below:
Consider the following four statements.
(A) P2 → P4 → P1 → P3 is a safe sequence (B)
P4 → P2 → P1 → P3 is a safe sequence (C)
P4 → P2 → P3 → P1 is a safe sequence
(D) P1 → P4 → P2 → P3 is a safe sequence
Identify correct statements from the given options.
The critical region ensures mutual exclusion, allowing only one process to access a shared resource at a time.
Working Set
Principle of Locality (III)
The working set is a concept used in memory management, based on the principle of locality to predict the set of pages a process is likely to use.
Deadlock
Circular Wait (I)
One of the necessary conditions for a deadlock is circular wait, where processes are waiting for resources held by one another in a circular chain.
Wait/Signal
Condition Variable (II)
The wait and signal operations are synchronization mechanisms associated with condition variables in multi-threaded environments.
Final Answer:
(A) → (IV), (B) → (III), (C) → (I), (D) → (II)
2
In a computer if the page fault service time is 10 ms and average memory access time is 30 ns. If one page faultis generated for every 106 memory accesses. What is the effective access time for the memory?