Professional Documents
Culture Documents
10. T / F – In a two-level memory hierarchy, the Hit Ratio is defined as the fraction of
all memory accesses found in the slower memory. F
11. T / F – Cache memory exploits the principle of locality by providing a small, fast
memory between the processor and main memory. T
12. T / F – In cache memory design, block size refers to the unit of data exchanged
between cache and main memory T
13. T / F – The primary problem with programmed I/O is that the processor must
wait for the I/O module to become ready and must repeatedly interrogate the
status of the I/O module while waiting. T
Operating Systems, Chapter 1
Multiple Choice Questions:
4. The two basic steps used by the processor in instruction processing are:
a. Program
b. Timer
c. I/O
d. All of the above
a. Interrupt signal
b. Halt signal
Operating Systems, Chapter 1
c. Handler signal
d. None of the above
8. Information that must be saved prior to the processor transferring control to the
interrupt handler routine includes:
11. As one proceeds down the memory hierarchy (i.e., from inboard memory to
offline storage), the following condition(s) apply:
12. Small, fast memory located between the processor and main memory is called:
a. WORM memory
b. Cache memory
c. CD-RW memory
d. None of the above
13. Direct Memory Access (DMA) operations require the following information from
the processor:
2. T / F – The operating system typically runs in parallel with application programs, on it’s own special
O/S processor. F
3. T / F – In a batch-processing system, the phrase “control is passed to a job” means that the
processor is now fetching and executing instructions in a user program. T
5. T / F – In a time sharing system, a user’s program is preempted at regular intervals, but due to
relatively slow human reaction time this occurrence is usually transparent to the user. T
6. T / F – Complex operating systems today typically consist of a few thousand lines of instructions. F
7. T / F – A monolithic kernel architecture assigns only a few essential functions to the kernel,
including address spaces, interprocess communication and basic scheduling. F
================================================================================
Multiple Choice Questions:
1. A primary objective of an operating system is:
a. Convenience
b. Efficiency
c. Ability to evolve
d. All of the above
2. The operating system provides many types of services to end-users, programmers and system
designers, including:
a. Built-in user applications
b. Error detection and response
c. Relational database capabilities with the internal file system
d. All of the above
3. Operating systems must evolve over time because:
a. Hardware must be replaced when it fails
b. Users will only purchase software that has a current copyright date
c. New hardware is designed and implemented in the computer system
d. All of the above
4. A computer hardware feature that is vital to the effective operation of a multiprogramming operating
system is:
a. Very large memory
b. Multiple processors
c. I/O interrupts and DMA
d. All of the above
5. The principle objective of a time sharing, multiprogramming system is to:
a. Maximize response time
b. Maximize processor use
c. Provide exclusive access to hardware
d. None of the above
Operating Systems, sheet-3 Chapter 3 – Process Description and Control
Page 1 of 4
Operating Systems, sheet-3 Chapter 3 – Process Description and Control
Page 2 of 4
Operating Systems sheet-4 Chapter 4 – Threads
Page 1 of 1
Operating Systems sheet-4
Chapter 4 – Threads
Page 1 of 3
Operating Systems, Scheduling Chapter 5
True / False Questions:
1. – Scheduling affects the performance of a system because it determines which processes will wait and
which will progress. T
2. – The short-term scheduler may limit the degree of multiprogramming to provide satisfactory service to the
current set of processes. F
3. – Medium-term scheduling is part of the system swapping function. T
4. – The long-term scheduler is invoked whenever an event occurs that may lead to the suspension or
preemption of the currently running process. F
5. – The main objective of short-term scheduling is to allocate processor time in such a way as to optimize one
or more aspects of system behavior. T
6. – One problem with a pure priority scheduling scheme is that lower-priority processes may suffer deadlock. F
7. – The selection function determines which process, among ready processes, is selected next for execution. T
8. – First-come-first-served (FCFS) is a simple scheduling policy that tends to favor I/O-bound processes over
processor bound processes. F
9. – Round Robin is a scheduling technique is also known as time slicing, because each process is given a
slice of time before being preempted. T
10. – The Shortest Process Next (SPN) scheduling policy is often used for time-sharing and transaction
processing environments because of the lack of preemption. F
11. – The Shortest Remaining Time (SRT) scheduling policy is a preemptive version of the Shortest Process
Next (SPN) scheduling policy. T
12. – In the Highest Response Ratio Next (HRRN) scheduling policy, longer jobs are favored, because they
yield a larger ratio from the smaller denominator in the equation. F
13. – A disadvantage of simulation is that results for a given “run” only apply to that particular collection of
processes under that particular set of assumptions. T
14. – In “fair share” scheduling, each user is assigned a weighting of some sort that defines that user’s share of
system resources as a fraction of the total usage of those resources. T
Page 1 of 4
Operating Systems, Scheduling Chapter 5
c. The lack of preemption d-All of the above
11. One difficulty with the Shortest Remaining Time (SRT) scheduling technique is:
a. The need to know or estimate required processing times for each process
b. The starvation of shorter processes
c. The lack of preemption d-All of the above
12. Which of the following scheduling policies require prior knowledge or estimation of process length:
a. Shortest Remaining Time (SRT) b-Shortest Process Next (SPN)
c. Highest Response Ratio Next (HRRN) d-All of the above
13. It is impossible to make definitive comparisons of various scheduling policies due to dependence on factors
such as:
a. The probability distribution of service times of the various processes
b. The efficiency of the scheduling and context switching mechanisms
c. The nature of the I/O demand and performance of the I/O subsystem d-All of the above
14. The strategy that schedules processes based on their group affiliation is generally referred to as:
a. Queuing analysis b-Simulation modeling c-Fair share scheduling d-All of the above
Fill-In-The-Blank Questions:
1. The task of assigning processes to the processor or processors over time, in a way that meets system
scheduling
objectives is called _______________.
2. The decision as to when to create a new process is generally driven by the desired degree of
multiprogramming
_______________.
medium
3. _______________-term scheduling is part of the system swapping function.
4. The _______________-term
short scheduler is invoked whenever an event occurs that may lead to the
suspension or preemption of the currently running process.
performance
5. Response time and throughput are examples of _______________-related criteria for short-term scheduling
6. In a system employing priority scheduling, the scheduler always selects the process with the
highest
_______________ priority level for processing.
decision mode which has two general categories, specifies the instants in time at which the
7. The _______________,
selection function is exercised.
8. In terms of the queuing model, the total time that a process spends in a system (waiting time plus service
time) is called the turnaround
_______________.time (TAT)
time slicing
9. The Round Robin scheduling technique is also known as _______________, because each process is given
a set amount of processor time before being preempted.
shortest process next (SPN)
10. _______________ is a scheduling policy in which the process with the shortest expected processing time is
selected next, but there is no preemption.
shortest remaining time (SRT) is a scheduling policy in which the process with the shortest expected processing time is
11. _______________
selected next, and if a shorter process becomes ready in the system, the currently running process is
preempted.
12. A scheduling mechanism that requires no prior knowledge of process length, yet can nevertheless favor
feedback
shorter jobs, is known as the _______________ scheduling mechanism.
13. In _______________ scheduling, each user is assigned a weighting of some sort that defines that user’s
share of system resources as a fraction of the total usage of those resources.
discrete-event simulation
Page 2 of 4
Operating Systems, Memory Management sheet-6
Page 1 of 4
Operating Systems, Memory Management sheet-6
12. – A memory system employing paging may suffer slightly from internal fragmentation and
experiences no external fragmentation. T
13. – In a memory system employing paging, the chunks of a process (called frames) can be
assigned to available chunks of memory (called pages). F
14. – A memory system employing segmentation may suffer slightly from external
fragmentation and experience no internal fragmentation. T
15. – A memory system employing segmentation consists of a number of user program
segments that must be of the same length and have a maximum segment length. F
Page 4 of 4
Operating Systems, Virtual Memory sheet-7
9. – The fetch policy determines when a page should be brought into main memory. T
10. – The Least Recently Used (LRU) replacement policy replaces the page in memory that
has been referenced most recently. F
11. - A global replacement policy considers all unlocked pages in main memory as candidates
for replacement, regardless of which process owns a particular page. T
12. – In a precleaning policy, modified pages are written to secondary memory once they have
been selected for replacement. F
Page 1 of 3
Operating Systems, Virtual Memory sheet-7
c. Having a common data area that all processes can share d-All of the above
8. A fundamental choice in the design of the memory-management portion of an O/S is:
a. Whether or not to use virtual memory techniques
b. Whether to use paging, segmentation of a combination of the two
c. The algorithms employed for various aspects of memory management d-All of the
above
9. The fetch policy that exploits the characteristics of most secondary memory devices, such as
disks, which have seek time and rotational latency is called:
a. Demand paging b-Prepaging c-Swapping d-None of the above
10. The replacement policy that is impossible to implement because it would require the O/S
to have perfect knowledge of future events is called the:
a. Optimal policy b-Least recently used (LRU) policy c-Clock policy d-None of the
above
11. The replacement policy that chooses only among the resident pages of the process that
generated the page fault in selecting a page to replace is referred to as a:
a-Global replacement policy b-Local replacement policy c-Variable replacement policy d-
None of the above
12. The concept associated with determining the number of processes that will be resident in
main memory is referred to as:
a. A cleaning policy b-The page fault frequency c-Load Control d-None of the above
Page 3 of 3