



Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!




Answer: A process control block stores information about a process, including its state, program counter, registers, scheduling information, and resource details.
Answer: A race condition occurs when the result depends on the timing or order of concurrent operations on shared data. 25.What is a critical section? Answer: A critical section is a part of a program that accesses shared data or resources and must not be executed concurrently in an unsafe manner. 26.What is a mutex? Answer: A mutex is a mutual-exclusion mechanism that allows only one thread or process to access a protected resource at a time. 27.What is a semaphore? Answer: A semaphore is a synchronization variable used to control access to shared resources through signaling and counting. 28.What is deadlock? Answer: Deadlock occurs when processes are permanently blocked because each is waiting for a resource held by another. 29.State the four necessary conditions for deadlock. Answer: Mutual exclusion, hold and wait, no preemption, and circular wait are the four necessary conditions. 30.What is deadlock prevention? Answer: Deadlock prevention designs a system to ensure that at least one necessary deadlock condition can never hold. 31.What is deadlock avoidance? Answer: Deadlock avoidance evaluates resource-allocation decisions to ensure the system remains in a safe state. 32.What is a safe state? Answer: A safe state is one in which the system can allocate resources in some order and allow all processes to complete.
33.What is memory management? Answer: Memory management allocates, tracks, protects, and deallocates main memory for processes and the operating system. 34.What is contiguous memory allocation? Answer: Contiguous memory allocation places each process in a single continuous region of physical memory. 35.What is paging? Answer: Paging divides logical memory into fixed-size pages and physical memory into corresponding frames. 36.What is a page fault? Answer: A page fault occurs when a process references a page that is not currently in physical memory. 37.What is virtual memory? Answer: Virtual memory allows programs to use an address space larger than physical memory by storing some data on secondary storage. 38.What is demand paging? Answer: Demand paging loads a page into memory only when the process references it. 39.What is page replacement? Answer: Page replacement selects a memory page to remove when a required page must be loaded and no free frame is available. 40.Name three page-replacement algorithms. Answer: FIFO, optimal replacement, and least recently used are common page- replacement algorithms. 41.What is thrashing?
50.What is the central purpose of an operating system? Answer: The central purpose is to manage hardware and software resources efficiently, provide a convenient execution environment, and protect system operations and data.