Bhanu Priya

Bhanu Priya

1,061 Articles Published

Articles by Bhanu Priya

Page 9 of 107

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 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

Differentiate between the long-term, short-term, and medium-term schedulers.

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

Before working on the difference between all three schedulers, let us recall the concept of process scheduler. Process scheduler is a part of the Operating system which schedules processes. If the process is in ready, waiting and running state, it schedules it correctly and is also responsible for the allocation of the CPU processor to a specific task within a time interval. Also, when the task or process is completed it doesn't allow the CPU to sit idle. It will allocate the other task depending on its current state. If the process was in ready state it will ...

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 659 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

What is the abstract view of the components of a computer system?

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

A computer system consists of many resources like hardware and software, which are useful to complete a task. The common required resources are input/output devices, memory, file storage space, CPU etc. The operating system acts as a manager for all the above resources and allocates them to specific programs and users, whenever necessary to perform a particular task. Therefore, the operating system is the resource manager that means it can manage the resources of a computer system internally. The resources are processor, memory, files, and I/O devices. An operating system is the interface between the user and the ...

Read More

What is a computer hardware organization?

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

Computer hardware organization refers to the way various hardware components of a computer system are interconnected and work together to execute programs and process data. A computer system consists of several modules, each performing specific functions to ensure smooth operation. Components of Computer Hardware The system hardware consists of the following key components − Input Devices − Keyboard, mouse, microphone Output Devices − Display, printer, speakers CPU Board − Contains the processor and control circuits Memory Board − Houses primary memory modules I/O Board − Provides interface for peripheral devices These components communicate through ...

Read More

What are the different types of process states and queues?

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

Let us begin by understanding the types of process states and their transitions in operating system process management. Types of Process States A process goes through several states during its lifecycle. Each state represents the current activity of the process and determines what the operating system can do with it. New − The process is being created. The program exists in secondary memory but has not yet been loaded into main memory or assigned resources. Ready − The process is loaded in main memory and waiting for CPU time. It has all necessary resources except the ...

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
Showing 81–90 of 1,061 articles
« Prev 1 7 8 9 10 11 107 Next »
Advertisements