AMCAT Operating Systems Fundamentals Flashcards
6 cards from real AMCAT practice questions. Tap to flip, then mark Knew It or Still Learning โ missed cards come back until you master them.
Read the first 6 AMCAT Operating Systems Fundamentals flashcards as text
What is the purpose of the Translation Lookaside Buffer (TLB) in virtual memory?
Answer: To cache recently used virtual-to-physical address translations for faster page table lookups
The TLB is a high-speed cache that stores recent virtual-to-physical page number translations. Since every memory access requires a page table lookup to convert virtual addresses to physical addresses, the TLB dramatically speeds up this process by caching frequently used translations.
In the context of inter-process communication (IPC), what is a race condition?
Answer: When the outcome of a program depends on the unpredictable timing of multiple processes accessing shared data
A race condition occurs when two or more processes access shared data concurrently, and the final result depends on the specific order in which their operations are interleaved. This non-deterministic behavior can lead to bugs that are difficult to reproduce and debug.
Which disk scheduling algorithm processes requests in the order of the shortest seek time from the current head position?
Answer: SSTF (Shortest Seek Time First)
SSTF selects the disk request that requires the least head movement from the current position. While it provides better average response time than FCFS, it can lead to starvation of requests far from the current head position.
What is the key difference between a monolithic kernel and a microkernel?
Answer: A microkernel runs most OS services in user space, while a monolithic kernel runs them all in kernel space
In a monolithic kernel (like Linux), all OS services (file systems, device drivers, networking) run in kernel space. In a microkernel (like Minix, L4), only essential services (IPC, basic scheduling, memory management) run in kernel space, while others run in user space as separate processes.
In the producer-consumer problem, what is the role of the buffer?
Answer: It acts as a shared storage area where the producer places items and the consumer retrieves them
The buffer in the producer-consumer problem is a shared, fixed-size storage area. The producer generates data items and places them into the buffer. The consumer retrieves and processes items from the buffer. Synchronization is needed to prevent the producer from writing to a full buffer or the consumer from reading an empty buffer.
What happens during a context switch in an operating system?
Answer: The state of the currently running process is saved and the state of the next scheduled process is loaded
A context switch saves the state (registers, program counter, stack pointer, etc.) of the currently running process into its Process Control Block (PCB), then loads the saved state of the next process to be executed. This allows the CPU to switch between processes, enabling multitasking.