WGU C191 Operating Systems for Programmers Pre-Assessment Questions with Complete Solution.
WGU C191 Operating Systems for Programmers Pre-Assessment Questions with Complete Solution. What is a valid process state? Waiting What are two valid components of a process control block (PCB) The process counter; The process state What is the difference between kernel and user threads? Kernel threads are directly managed by the operating system, whereas user threads are managed without kernel support. Which advantage does short-term scheduling have compared with long-term scheduling? It takes less time to select a process to execute next. What is considered stable when the average rate of process creation is equal to the average departure rate of processes leaving the system? The degree of multiprogramming Which action allows an application that is in the background to be passed to the foreground and vice versa? Context switching What is the process of context switching? Performing a state save and a state restore Which features are included in the DTrace tool? Compiler, providers of probes, and consumers What is the difference between cooperative and preemptive scheduling? Cooperative scheduling occurs when a process terminates, whereas preemptive scheduling occurs when a process initiates. Which scheduling criteria measures the number of processes completed per time unit? Throughput Which criterion attempts to keep the processor as busy as possible? CPU utilization When does starvation occur in the priority scheduling algorithm? When a process is waiting indefinitely Which scheduling algorithm was designed especially for time sharing systems? Round-robin What is a difference between soft and hard processor affinity? Hard affinity specifies a subset of processors on which a process may run, whereas soft affinity leaves the processor selection to the OS. What is an address that is generated by the CPU? A logical address Which general-purpose storage is accessed directly by the CPU? The main memory What is a limitation of swapping on mobile systems? Applications that fail to free up sufficient memory are terminated. What is the name of the memory allocation scheme where the operating system keeps a table of available holes? Variable partition What is described as memory allocated from a fixed-size segment consisting of physically contiguous pages? Buddy system Which memory management solution relocates all available memory into one variable-sized block? Compaction What does the 50-percent rule of memory fragmentation state when allocating additional memory using the first-fit method? One-third of all memory may be unused. Which component is associated with the paging scheme? Frames Which solution resolves slow access time to user memory location when implementing paging? Using the translation look-aside buffer (TLB) Which component ensures the integrity of memory in a paged environment? Protection bits What is a non-self-modifying code that never changes during execution? Reentrant What is the purpose of an inverted page table? It reduces memory usage to store addresses. What is a benefit of using virtual memory? System libraries can be shared. Which algorithm has the lowest possible page-fault rate and does not suffer from Belady's anomaly? Optimal Which collection of pages references the most recent set of delta parameters (Δ)? The working set In Windows, what represents the shared-memory object that will enable communication between processes? A memory-mapped file Which strategy for assigning kernel memory uses cache to refer to a set of one or more physically contiguous pages that serve for each unique kernel? Slab allocation What is a scheme used to help free up space (i.e. garbage collection)? Least frequently used (LFU)
Document information
- Uploaded on
- July 6, 2023
- Number of pages
- 6
- Written in
- 2022/2023
- Type
- Exam (elaborations)
- Contains
- Questions & answers