OS

What is the difference between a process and a thread in operating systems?

What is the difference between a process and a thread in operating systems? a) A process is an independent program in execution, while a thread is a lightweight process that shares resources with other threads b) A thread is more memory-intensive than a process c) Threads cannot communicate with each other, while processes can d) […]

What is the difference between a process and a thread in operating systems? Read More »

What is the difference between preemptive and non-preemptive scheduling?

What is the difference between preemptive and non-preemptive scheduling? a) Preemptive scheduling allows the OS to take control of the CPU from a running process, while non-preemptive scheduling does not b) Non-preemptive scheduling is faster than preemptive scheduling c) Preemptive scheduling only works in single-tasking systems d) Non-preemptive scheduling only works for real-time processes Answer:

What is the difference between preemptive and non-preemptive scheduling? Read More »

What is the primary purpose of inter-process communication (IPC) in operating systems?

What is the primary purpose of inter-process communication (IPC) in operating systems? a) To allow processes to communicate with each other b) To provide hardware interrupts to the CPU c) To allocate memory to multiple processes d) To provide access control to system resources Answer: a) To allow processes to communicate with each other Explanation:

What is the primary purpose of inter-process communication (IPC) in operating systems? Read More »

What is the purpose of a process control block (PCB) in an operating system?

What is the purpose of a process control block (PCB) in an operating system? a) It stores the program counter and process state b) It manages user interactions with the system c) It handles file input/output operations d) It manages network connections Answer: a) It stores the program counter and process state Explanation: The Process

What is the purpose of a process control block (PCB) in an operating system? Read More »

Which of the following is a function of memory management in an operating system?

Which of the following is a function of memory management in an operating system? a) Allocating and deallocating memory to processes b) Managing system file permissions c) Establishing network connections d) Managing user interface Answer: a) Allocating and deallocating memory to processes Explanation: Memory management is a crucial function of an operating system that involves

Which of the following is a function of memory management in an operating system? Read More »

Which of the following is a non-preemptive scheduling algorithm?

Which of the following is a non-preemptive scheduling algorithm? a) Round-Robin b) Shortest Job Next (SJN) c) First-Come, First-Served (FCFS) d) Priority Scheduling Answer: c) First-Come, First-Served (FCFS) Explanation: First-Come, First-Served (FCFS) is a non-preemptive scheduling algorithm where the CPU executes processes in the order they arrive. Once a process starts executing, it runs to

Which of the following is a non-preemptive scheduling algorithm? Read More »

What is an Operating System?

What is an Operating System? a) A software that manages computer hardware and software resources b) A program that runs in the background c) A set of applications for performing tasks d) A hardware component Answer: a) A software that manages computer hardware and software resources Explanation: An Operating System (OS) is a system software

What is an Operating System? Read More »

Scroll to Top