Operating System Articles

Page 97 of 171

What are the types of process scheduling algorithms and which algorithms lead to starvation?

Bhanu Priya
Bhanu Priya
Updated on 17-Mar-2026 4K+ Views

Process scheduler assigns different processes to the CPU based on particular scheduling algorithms. Each algorithm has different characteristics regarding fairness, efficiency, and the potential for starvation — a condition where some processes may wait indefinitely. Types of Process Scheduling Algorithms The different types of process scheduling algorithms are as follows − FCFS (First Come First Serve) Jobs are executed on a first come first serve basis using a simple FIFO (First In First Out) queue. It is a non-preemptive algorithm where processes run to completion once started. While simple to implement, its performance is often poor ...

Read More

What is the motivation to implement a micro-kernel in an operating system?

Bhanu Priya
Bhanu Priya
Updated on 17-Mar-2026 285 Views

Micro kernel is one of the classifications of kernel architecture and is often represented as μ-kernel. It is a minimalist operating system design that provides only the most essential services in kernel space, moving most operating system functionality to user space as separate processes. The core functions provided by a micro kernel are − Inter-process communication (IPC) − Message passing between processes Thread management − Basic thread creation and scheduling Low-level address space management − Memory protection and virtual memory basics In the micro kernel architecture, user services and kernel services are kept in different ...

Read More

What is multithreaded programming?

Bhanu Priya
Bhanu Priya
Updated on 17-Mar-2026 2K+ Views

A thread is a lightweight unit of CPU execution within a process. It comprises a thread ID, a program counter, a register set, and a stack. Multiple threads belonging to the same process share the code segment, data section, and operating system resources like open files and signals. A traditional heavyweight process has a single thread of control. However, if a process has multiple threads of control, it can perform more than one task concurrently. Many modern software applications are multithreaded, implementing the application as a single process with several threads of control. For example − A word ...

Read More

What are the five process states in the Linux kernel ?

Bhanu Priya
Bhanu Priya
Updated on 17-Mar-2026 1K+ Views

The Linux kernel manages processes through five distinct states that define their current execution status and resource allocation. Understanding these states is crucial for system administrators and developers working with process management. The Five Process States Running (TASK_RUNNING) − The process is either currently executing on the CPU or is ready to run and waiting in the run queue. This is the most active state where the process can access system resources and CPU time. Interruptible Sleep (TASK_INTERRUPTIBLE) − The process is blocked and waiting for a specific event, signal, or resource to become available. It can ...

Read More

What are the Privileged and Non-Privileged instructions in Operating System?

Bhanu Priya
Bhanu Priya
Updated on 17-Mar-2026 4K+ Views

In operating systems, instructions are classified into two main categories based on their access level and potential impact on system security and stability. Privileged instructions can only be executed in kernel mode, while non-privileged instructions can be executed in user mode. This classification ensures system protection and controlled access to critical resources. Privileged Instructions Privileged instructions are machine-level instructions that can only be executed when the processor is operating in kernel mode (also called privileged mode). These instructions have direct access to system resources and can potentially compromise system security if misused. Examples of Privileged Instructions ...

Read More

What happens to a PCB when the state of a process changes?

Bhanu Priya
Bhanu Priya
Updated on 17-Mar-2026 1K+ Views

Process Control Block (PCB) is a data structure used by the operating system to store essential information about each process. When a process changes state, the PCB is updated to reflect the new state and preserve the process's context for future execution. The PCB contains critical information that allows the OS to manage processes effectively during state transitions and context switches. PCB Components The important information stored in PCB includes the following − Process ID (PID) − Unique identifier for each process in the system. Process State − Current state (Ready, Running, Blocked, Terminated). Program ...

Read More

How can kernels context-switch between processes?

Bhanu Priya
Bhanu Priya
Updated on 17-Mar-2026 2K+ Views

Context switching is the process by which the kernel saves the state of a currently running process and loads the state of another process to give it CPU time. It's important to distinguish that a simple transition between user and kernel mode is not a context switch — a context switch specifically involves changing from one process to another. How Context Switching Works The kernel performs context switching through a series of coordinated steps to ensure process states are preserved and restored correctly: The values of the CPU registers are saved in the Process Control Block ...

Read More

How are system calls connected to the operating system?

Bhanu Priya
Bhanu Priya
Updated on 17-Mar-2026 2K+ Views

System calls are the interface between user programs and the operating system kernel. They provide a controlled way for applications to request services from the OS, such as file operations, memory allocation, or hardware access. Application developers typically access system calls through APIs (Application Programming Interfaces), which define how software components should communicate. When a user program needs to interact with the operating system − whether to read a file, allocate memory, or access hardware − it must use system calls. This mechanism ensures that user programs cannot directly access critical system resources, maintaining security and stability. User ...

Read More

Differentiate between event driven paradigm and algorithmic paradigms

Bhanu Priya
Bhanu Priya
Updated on 17-Mar-2026 597 Views

Programming paradigms define how we approach and structure solutions to computational problems. Two fundamentally different approaches are algorithmic paradigms and event-driven paradigms, each serving distinct purposes in software development. Algorithmic Paradigms An algorithmic paradigm is a generic model or framework that underlies the design of a class of algorithms. It provides a systematic approach to problem-solving by defining how we break down complex problems into manageable parts and solve them step by step. The main algorithmic paradigms include: Brute Force − Tries all possible solutions until finding the correct one Greedy − Makes locally optimal ...

Read More

What is dispatcher and difference between dispatcher and scheduler?

Bhanu Priya
Bhanu Priya
Updated on 17-Mar-2026 774 Views

The dispatcher is a crucial component of the operating system that works after the scheduler has made its decision. It gives control of the CPU to the process selected by the short-term scheduler by performing the actual context switching and transferring CPU control to the chosen process. Functions of Dispatcher The dispatcher performs several critical functions to transfer CPU control − Context switching − Saving the current process state and loading the selected process state. Switching to user mode − Changing from kernel mode to user mode for process execution. Jumping to the proper location − ...

Read More
Showing 961–970 of 1,707 articles
« Prev 1 95 96 97 98 99 171 Next »
Advertisements