Os 2M
Os 2M
5. What is a kernel?
The kernel is the core part of the opera ng system.
It directly interacts with hardware and manages system resources.
It handles memory, processes, and device control.
10. What is the difference between system calls and system programs?
System calls are low-level func ons invoked by user processes to interact with the OS.
System programs are high-level u li es for performing OS-related tasks.
System programs may use system calls internally.
UNIT – II: Processes, Threads & CPU Scheduling
1. Define a process.
A process is an instance of a program in execu on.
It consists of program code, data, and the execu on context.
The OS uses the process to manage execu on of applica ons.
5. What is a thread?
A thread is the smallest sequence of programmed instruc ons.
It is a lightweight process that shares memory and resources with other threads.
Threads enable parallel execu on within a process.
2. Define semaphore.
A semaphore is a synchroniza on tool used to control access to shared resources.
It is an integer variable that supports atomic opera ons like wait() and signal().
Semaphores help solve cri cal sec on problems and prevent race condi ons.
1. What is paging?
Paging divides physical memory into fixed-size blocks called frames.
Logical memory is divided into pages of the same size.
It eliminates external fragmenta on and simplifies memory management.
4. What is copy-on-write?
Copy-on-write allows mul ple processes to share the same page ini ally.
When a process modifies the page, a separate copy is created for it.
This technique saves memory and improves efficiency.
6. What is thrashing?
Thrashing occurs when excessive paging slows down system performance.
It happens when processes spend more me swapping pages than execu ng.
Thrashing leads to severe CPU u liza on drop and system inefficiency.
1. Define a file.
A file is a named collec on of related informa on stored on secondary storage.
It can contain data, programs, or metadata.
Files provide a way to organize and manage data persistently.