Category: Operating System

Introduction to System Calls

Introduction to System Calls To understand system calls, first one needs to understand the difference between kernel mode and user mode of a CPU. Every modern operating system supports these two modes. Modes supported by the operating system   Kernel Mode When CPU is in kernel mode, the code being executed can access any memory address and any hardware resource. […]

What is Readers Writer Problem?

What is Readers Writer Problem? Readers writer problem is another example of a classic synchronization problem. There are many variants of this problem, one of which is examined below. The Problem Statement There is a shared resource which should be accessed by multiple processes. There are two types of processes in this context. They are reader and writer. […]

Dining Philosophers Problem

Dining Philosophers Problem The dining philosophers problem is another classic synchronization problem which is used to evaluate situations where there is a need of allocating multiple resources to multiple processes. What is the Problem Statement? Consider there are five philosophers sitting around a circular dining table. The dining table has five chopsticks and a bowl […]

Comparison of Scheduling Algorithms

Comparison of Scheduling Algorithms By now, you must have understood how CPU can apply different scheduling algorithms to schedule processes. Now, let us examine the advantages and disadvantages of each scheduling algorithms that we have studied so far. First Come First Serve (FCFS) Let’s start with the Advantages: FCFS algorithm doesn’t include any complex logic, it just […]

Back To Top