Operating_System_Notes
Operating_System_Notes
- Maximize CPU Utilization: Keep the CPU busy with tasks to make the best use of
- Minimize Waiting Time: Ensure processes spend less time waiting in the queue,
- Minimize Turnaround Time: Reduce the total time taken from the submission of a
- Minimize Response Time: Aim for a lower response time to improve the system's
- Fair Allocation of Resources: Ensure all processes get a fair share of CPU time
- Avoid Process Starvation: Ensure that all processes receive CPU attention to avoid
- Throughput: Number of processes that complete execution per unit time. A higher
- Turnaround Time: The total time taken from the arrival of a process to its
- Waiting Time: The amount of time a process remains in the ready queue before
executed.
- Shortest Job Next (SJN): Selects the process with the shortest expected processing
time.
- Round Robin (RR): Each process is assigned a fixed time slice in a cyclic order.
- Multilevel Queue Scheduling: Processes are grouped into queues based on priority
process that enters the ready queue is the first to be executed. While simple, it can
lead to long waiting times if a lengthy process occupies the CPU early (known as the
'convoy effect'). Its non-preemptive nature makes it predictable but not necessarily
efficient.
- Round Robin (RR): In Round Robin, each process gets a small time slice, called a
quantum, before the next process is scheduled. This preemptive method is suitable
for time-sharing environments, ensuring that all processes get a fair share of CPU
time. The efficiency depends on the quantum size; too small a quantum can lead to
Deadlock is a situation where processes are stuck waiting for resources indefinitely.
Deadlock prevention strategies aim to eliminate at least one of the four necessary
- Hold and Wait: Ensure processes don't hold onto resources while waiting for others.
needed.
- Circular Wait: Enforce a strict order for resource allocation to prevent circular
dependencies.