We read your photo as:
Explain any Four differences between paging and segmentation as used in Memory Management? Using an example, explain the operating of 'Shortest Remaining Time, SRT scheduling technique?
ScanSolve AI Answer
Here are the answers to the remaining questions:
QUESTION ONE
d) Explain any Four differences between paging and segmentation as used in Memory Management?
Here are four differences between paging and segmentation:
- Size of Blocks: In paging, memory is divided into fixed-size blocks called pages (logical memory) and frames (physical memory). In segmentation, memory is divided into variable-size blocks called segments, which correspond to logical units of a program (e.g., code, data, stack).
- Logical View: Paging provides a non-logical view of memory to the user, as pages are arbitrary divisions. Segmentation provides a logical view of memory, where segments correspond to meaningful program units.
- Fragmentation: Paging suffers from internal fragmentation (unused space within a page) but avoids external fragmentation. Segmentation can suffer from external fragmentation (unused space between segments) but avoids internal fragmentation.
- User Awareness: In paging, the user is generally unaware of the page structure. In segmentation, the user is aware of the segments as logical units of their program.
e) Using an example, explain the operating of 'Shortest Remaining Time, SRT scheduling technique as one of the approaches used in design of algorithms in Operating systems
The Shortest Remaining Time (SRT) scheduling technique is a preemptive version of Shortest Job First (SJF). It executes the process with the smallest remaining burst time. If a new process arrives with a shorter remaining burst time than the currently executing process, the CPU is preempted, and the new process starts executing.
Example:
Consider three processes:
- : Arrival Time = 0, Burst Time = 8
- : Arrival Time = 1, Burst Time = 4
- : Arrival Time = 2, Burst Time = 9
- At time 0, arrives and starts executing (remaining time = 8).
- At time 1, arrives. has 7 units remaining, has 4 units. Since has a shorter remaining time, is preempted, and starts executing.
- At time 2, arrives. has 3 units remaining, has 7 units, has 9 units. still has the shortest remaining time, so it continues.
- finishes at time 5 (1 unit of execution + 4 units of execution).
- At time 5, (remaining 7) and (remaining 9) are in the ready queue. has the shortest remaining time, so it resumes execution.
- finishes at time 12 (5 units of execution + 7 units of execution).
- At time 12, only (remaining 9) is left. It starts executing.
- finishes at time 21 (12 units of execution + 9 units of execution).
f) State three approaches used to handle deadlocks
Three approaches used to handle deadlocks are:
- Deadlock Prevention: This approach ensures that at least one of the four necessary conditions for deadlock (mutual exclusion, hold and wait, no preemption, circular wait) cannot hold.
- Deadlock Avoidance: This approach requires the operating system to have prior information about resource requests. It dynamically checks if granting a resource request would lead to an unsafe state and only grants requests that
Still stuck on this one?
Ask a follow-up, and the answer starts from this question.
More Computer Science Questions

Handwritten Step-by-Step Solution
Get this as a handwritten image on WhatsApp — like a tutor wrote it for you.
Try on WhatsApp