Computer Science Articles

Page 2 of 53

Process vs Parent Process vs Child Process

Ricky Barnes
Ricky Barnes
Updated on 17-Mar-2026 11K+ Views

In Operating System, the fork() system call is used by a process to create another process. The process that uses the fork() system call is the parent process and the process consequently created is known as the child process. Process A process is an active program — a program that is under execution. It is more than just the program code as it includes the program counter, process stack, registers, program code, and other runtime information. The program code itself is only the text section of a process. A process changes its state as it executes, depending ...

Read More

Process Scheduling Fundamentals

David Meador
David Meador
Updated on 17-Mar-2026 953 Views

Process Scheduling handles the selection of a process for the processor based on a scheduling algorithm and the removal of a process from the processor. It is an important part of multiprogramming in operating systems, enabling efficient CPU utilization and fair resource distribution among competing processes. Process Scheduling Algorithms Process scheduling algorithms determine which process gets CPU access next and how resources are distributed among processes. Each algorithm has different characteristics regarding fairness, throughput, and response time. Major Scheduling Algorithms First Come First Served (FCFS) − Handles processes in the order they arrive in the ...

Read More

Single-threaded and Multi-threaded Processes

David Meador
David Meador
Updated on 17-Mar-2026 51K+ Views

Single-threaded processes execute instructions sequentially, processing one command at a time in a linear fashion. In contrast, multi-threaded processes allow multiple parts of a program to execute concurrently, creating lightweight execution units called threads within the same process space. Types of Threading Implementation Multi-threaded processes can be implemented at two levels − user-level threads managed by application libraries, or kernel-level threads managed directly by the operating system. Multi-threaded Process Implementation User-Level Threads User Thread ...

Read More

Operating Systems Client/Server Communication

Ricky Barnes
Ricky Barnes
Updated on 17-Mar-2026 21K+ Views

Client/Server communication is a distributed computing model where multiple client processes request services from a server process. The clients send requests to the server, and the server responds with the requested data or services. This architecture forms the backbone of modern networked applications and distributed systems. There are three main methods for client/server communication, each with distinct characteristics and use cases − Sockets Sockets are endpoints for communication between two processes, whether on the same machine or across a network. A socket is identified by an IP address and port number combination. They provide a low-level interface ...

Read More

Dining Philosophers Problem (DPP)

Kristi Castro
Kristi Castro
Updated on 17-Mar-2026 46K+ Views

The Dining Philosophers Problem (DPP) is a classic synchronization problem in computer science that illustrates the challenges of deadlock and resource sharing in concurrent systems. The problem states that there are 5 philosophers sharing a circular table where they eat and think alternatively. There is a bowl of rice for each philosopher and 5 chopsticks placed between them. A philosopher needs both their right and left chopstick to eat. A hungry philosopher may only eat if both chopsticks are available, otherwise they put down any chopstick they hold and begin thinking again. This problem demonstrates a large class of ...

Read More

Difference between Thread Context Switch and Process Context Switch

Pradeep Kumar
Pradeep Kumar
Updated on 17-Mar-2026 2K+ Views

Context switching is a fundamental operation performed by an operating system to manage multiple threads or processes in a multitasking environment. It involves saving the current execution context of a thread or process and restoring the execution context of another thread or process. This allows the operating system to quickly switch between different threads or processes, giving the illusion of concurrent execution. There are two types of context switches: thread context switch and process context switch. Understanding their differences is crucial for system design and performance optimization. What is Thread Context Switch? A thread context switch refers ...

Read More

Difference between Swapping and Context Switching

Pradeep Kumar
Pradeep Kumar
Updated on 17-Mar-2026 827 Views

In computer systems, swapping and context switching are two fundamental mechanisms that serve different purposes in process management. While both contribute to system efficiency and multitasking capabilities, they operate at different levels and address distinct system requirements. What is Swapping? Swapping is a memory management technique where an entire process or its segments are moved between main memory (RAM) and secondary storage (disk). This allows the system to accommodate more processes than physical memory can handle by temporarily storing inactive processes on disk. Swapping Process Main Memory ...

Read More

Difference between Transfer Time and Disk Access Time in Disk Scheduling

Pradeep Kumar
Pradeep Kumar
Updated on 17-Mar-2026 1K+ Views

Disk scheduling is a crucial component of operating systems that manages the order in which disk requests are serviced. When analyzing disk performance, two important metrics to consider are Transfer Time and Disk Access Time. Understanding the difference between these metrics provides insights into the efficiency and responsiveness of disk scheduling algorithms. What is Transfer Time in Disk Scheduling? Transfer time, also known as data transfer time, is the time required to move a block of data between the disk and the main memory. It represents the actual duration for reading or writing data once the disk head ...

Read More

Difference Between Stimulus and Response Events

Pradeep Kumar
Pradeep Kumar
Updated on 17-Mar-2026 542 Views

The concepts of stimulus and response events play a crucial role in understanding how systems and programs interact with each other and with their environment. These terms are often used in the context of event-driven programming, where software components respond to various events triggered by user actions or other system events. In this article, we will explore the fundamental differences between stimulus and response events and delve into their significance in computer science. What are Stimulus Events? Stimulus events can be thought of as triggers or inputs that initiate a particular action or behavior within a system. These ...

Read More

Difference Between Terminal, Console, Shell, and Command Line

Pradeep Kumar
Pradeep Kumar
Updated on 17-Mar-2026 14K+ Views

In the world of computers and operating systems, there are several terms related to the interaction between users and the underlying system. This includes terminal, console, shell, and command line. While they are often used interchangeably, they have distinct meanings and serve different purposes. Understanding these differences is essential for anyone working with operating systems. What is a Terminal? A terminal refers to a device or a program that provides a user interface for interacting with the computer system. Historically, terminals were physical devices such as teletypewriters or computer monitors connected to mainframe systems. Today, terminal emulators are ...

Read More
Showing 11–20 of 521 articles
« Prev 1 2 3 4 5 53 Next »
Advertisements