Operating System Articles

Page 35 of 171

How is IPC implemented in the Android, MAC, Windows Operating systems?

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

Inter-process communication (IPC) is a technique of exchanging data between two or more processes for performing some action on that data. These processes may be present on the same computer or at remote locations. The reasons for Inter-process communication are as follows − Sharing information between processes Speed up computation through parallel processing Increasing modularity in application design Resource sharing and coordination between processes Now, let us learn about the IPC mechanisms implemented in different operating systems. Android IPC Mechanisms Android OS uses several methods for sharing data between processes, with Binders being ...

Read More

Diff a Directory for Only Files of a Specific Type on Linux

Kunal Verma
Kunal Verma
Updated on 17-Mar-2026 805 Views

In this article, we are going to learn how to diff a directory for only files of a specific type in Linux. This is particularly useful when you need to compare configuration files, source code, or documentation across directories while ignoring irrelevant file types. The diff Command Overview The diff command is a powerful built-in Linux tool that compares files and directories line by line. When comparing directories, it identifies differences in file contents, missing files, and additional files. However, by default, it processes all files, which can be overwhelming in directories with mixed file types. Basic ...

Read More

How to check if a File Type Exists in a Directory?

Kunal Verma
Kunal Verma
Updated on 17-Mar-2026 1K+ Views

There are times when we need to determine whether a particular file type is present in a directory or not. For instance, we might want to check if a directory contains Python files or C++ source files. Several Linux commands like ls, find, and file can help us accomplish this task efficiently. In this tutorial, we will review multiple approaches to check whether particular file types exist in a directory using wildcard patterns and command-line utilities. Using the ls Command The ls command is one of the most frequently used commands in Linux for listing files and ...

Read More

How to implement thread in kernel space?

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

Kernel-level threads are threads that are created and managed directly by the operating system kernel. Unlike user-level threads, which are managed by thread libraries in user space, kernel threads are scheduled by the kernel's thread scheduler and have direct access to system resources. Functions of Kernel The kernel performs several critical functions in the operating system − Memory management − Allocating and deallocating memory for processes and threads Process and thread scheduling − Determining which processes/threads get CPU time File system management − Managing file operations and storage Interrupt handling − Processing hardware and software interrupts ...

Read More

What are thread libraries?

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

A thread is a lightweight subprocess and the basic unit of CPU utilization, consisting of a program counter, a stack, and a set of registers. Threads enable concurrent execution within a single process, allowing multiple sequences of instructions to run simultaneously. Given below is the structure of threads within a process − Thread Structure in Process Process Shared: Code, Data, Files Thread 1 Registers Stack Program Counter ...

Read More

What are the merits and demerits of a distributed system?

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

A Distributed Operating System is a type of operating system that manages multiple computers connected through a network as a single coherent system. Unlike traditional centralized systems, distributed OS coordinates resources across multiple machines while presenting a unified interface to users. It extends beyond network operating systems by providing higher levels of integration and transparency. In a distributed system, multiple CPUs work together but appear as a single system to end users. Resources like CPU cycles, memory, storage, and network interfaces can be shared seamlessly across different sites. All processors communicate through high-speed networks such as LANs or WANs, ...

Read More

What are Scheduling Queues?

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

Scheduling queues are data structures used by the operating system to organize processes in different states. The OS maintains several types of queues to efficiently manage process scheduling and resource allocation. Types of Scheduling Queues The operating system uses three main types of scheduling queues − Job Queue − Contains all processes entering the system Ready Queue − Stores processes in the ready state waiting for CPU allocation Device Queues − Hold processes waiting for specific I/O devices Process Flow Through Queues Process Movement Through Scheduling Queues ...

Read More

What are different types of CPU scheduling and the scheduling criteria?

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

The process scheduler is responsible for assigning processes to the CPU based on specific scheduling algorithms. It manages the order in which processes are executed to optimize system performance and resource utilization. CPU scheduling involves selecting which process should run next when the CPU becomes available. The scheduler uses various algorithms and policies to make these decisions, balancing factors like efficiency, fairness, and response time. Types of CPU Scheduling Algorithms CPU scheduling algorithms can be categorized into different types based on their approach − Preemptive vs Non-Preemptive Preemptive Scheduling Non-Preemptive Scheduling ...

Read More

What are multithreading models?

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

Multithreading models define the relationship between user threads and kernel threads. User threads are managed by thread libraries in user space without direct kernel support, while kernel threads are created and managed directly by the operating system kernel. The mapping between user and kernel threads determines how efficiently an application can utilize system resources and achieve true parallelism on multiprocessor systems. Types of Multithreading Models There are three primary multithreading models that define how user threads are mapped to kernel threads − Many-to-One Model This model maps multiple user threads to a single kernel thread. ...

Read More

What is the relationship between process states and the machine cycle?

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

Let us understand what a process state is and how it relates to the machine cycle. Process States Process states are the different stages in which a process exists during its lifetime. There are basically five states of processes − New − The process is about to be created but not yet created. It is the program present in secondary memory that will be picked up by the OS to create the process. Ready − The process enters the ready state after creation, meaning the process is loaded into main memory and waiting for CPU allocation. ...

Read More
Showing 341–350 of 1,707 articles
« Prev 1 33 34 35 36 37 171 Next »
Advertisements