Bhanu Priya

Bhanu Priya

1,061 Articles Published

Articles by Bhanu Priya

Page 8 of 107

How to implement thread in user space?

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

A thread is a lightweight process that consists of a program counter, a stack, and a set of registers. It represents the basic unit of CPU utilization and allows multiple execution paths within a single process. Single-Threaded Process Structure Process Control Block Program Counter Stack Pointer Registers Thread Implementation in User Space User-space threads are implemented entirely within the application program without kernel involvement. The complete thread package resides in user ...

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 is a multithreading model in OS?

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

Multithreading is a technique where a process is divided into multiple smaller tasks called threads. Each thread is a lightweight unit of execution that can run concurrently with other threads within the same process. When multiple threads execute simultaneously within a process, it is called multithreading. Modern operating systems provide multithreading support as an essential capability for efficient resource utilization and improved system performance. Types of Multithreading Models Based on functionality and thread management, multithreading models are categorized into four types − One process, one thread − Single-threaded model One process, multiple threads − Multi-threaded ...

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 651 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 threading issues?

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

When designing multithreaded programs, developers must address several critical threading issues that can significantly impact program behavior and system stability. These issues arise from the complexity of coordinating multiple threads of execution within a single process. The fork() and exec() System Calls The fork() and exec() system calls behave differently in multithreaded environments compared to single-threaded programs. fork() System Call When one thread in a multithreaded program calls fork(), the question arises: should the new process duplicate all threads or only the calling thread? Different UNIX systems handle this differently − Duplicate all threads ...

Read More

What is a process scheduler in OS?

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

A process scheduler is a core component of the Operating System that manages the allocation of CPU time among multiple processes. It determines which process should run next when the CPU becomes available and ensures efficient utilization of system resources by preventing the CPU from remaining idle. The scheduler continuously monitors processes in different states (ready, waiting, running) and makes intelligent decisions about CPU allocation. When a process completes its execution or enters a waiting state, the scheduler immediately assigns the CPU to another ready process, maintaining optimal system performance. How Process Scheduling Works ...

Read More

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 computer architecture?

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

Computer architecture is a set of rules and methods that describe the functionality, organization, and implementation of computer systems. It defines how a system performs operations and executes instructions, serving as the blueprint for building and understanding computers. Sub-divisions of Computer Architecture Computer architecture can be divided into three main categories − Instruction Set Architecture (ISA) − Defines the interface between software and hardware. It specifies the instructions a processor can execute, data types, registers, memory addressing modes, and interrupt handling. The ISA acts as a contract between software programmers and hardware designers. Microarchitecture − Describes ...

Read More

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

Bhanu Priya
Bhanu Priya
Updated on 17-Mar-2026 286 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
Showing 71–80 of 1,061 articles
« Prev 1 6 7 8 9 10 107 Next »
Advertisements