Auto generated Flashcards
(68 cards)
What is a process in an operating system?
A process is a program in execution, which includes the program code, current activity, and allocated resources.
True or False: A thread is a lightweight process.
True
Fill in the blank: The _______ manages the execution of processes in an operating system.
scheduler
What is the main purpose of memory management in an operating system?
To manage the allocation and deallocation of memory spaces to processes.
What are the two main types of scheduling algorithms?
Preemptive and non-preemptive scheduling algorithms.
Multiple Choice: Which of the following is a preemptive scheduling algorithm? A) Round Robin B) First-Come, First-Served C) Shortest Job First D) All of the above
A) Round Robin
Define ‘context switch’.
Context switch is the process of storing and restoring the state of a CPU so that multiple processes can share a single CPU resource.
What is the purpose of a process control block (PCB)?
A PCB contains information about a process, including its state, program counter, CPU registers, memory management information, and I/O status.
True or False: Concurrency refers to multiple processes executing simultaneously.
False
What is the difference between a process and a thread?
A process has its own memory space, while threads share the same memory space within a process.
Fill in the blank: The _______ is responsible for ensuring that processes do not interfere with each other.
operating system
Multiple Choice: Which scheduling algorithm is based on the shortest burst time? A) Round Robin B) Shortest Job First C) Priority Scheduling D) Multilevel Queue
B) Shortest Job First
What is deadlock in the context of operating systems?
Deadlock is a situation where two or more processes are unable to proceed because each is waiting for the other to release a resource.
True or False: A semaphore is a synchronization primitive used to control access to a common resource.
True
Define ‘thrashing’.
Thrashing occurs when a process spends more time paging than executing, leading to a significant decrease in performance.
What is a ‘race condition’?
A race condition is a situation where the outcome of a process depends on the sequence or timing of uncontrollable events.
Fill in the blank: The _______ algorithm allocates CPU time slices to processes in a circular order.
Round Robin
What is the role of the operating system’s kernel?
The kernel is the core component of an operating system that manages system resources and facilitates communication between hardware and software.
Multiple Choice: Which of the following is NOT a type of memory management? A) Paging B) Segmentation C) Fragmentation D) Swapping
C) Fragmentation
What does ‘virtual memory’ allow an operating system to do?
Virtual memory allows an operating system to use disk space as an extension of RAM, enabling larger applications to run.
True or False: In a multithreaded environment, threads within the same process can share data more easily than processes.
True
What is a priority scheduling algorithm?
A priority scheduling algorithm assigns priorities to processes and selects the process with the highest priority for execution.
Fill in the blank: A _______ is a mechanism that allows multiple processes to execute concurrently while sharing resources.
thread
What is the difference between soft and hard real-time systems?
Soft real-time systems tolerate some missed deadlines, while hard real-time systems require strict adherence to deadlines.