A single-core lab computer has a 1000 ms observation interval. Application instructions require exactly 620 ms of processor time, and routine operating-system maintenance requires another 80 ms. Each completed file request requires an additional 0.75 ms of operating-system processor time.
These categories do not overlap. All file requests are ready at the start, device waiting time is negligible, and there are no other processor-time costs. A request must finish within the interval to count. The administrator requires at least 100 ms of idle processor time in the interval.
Find the maximum number of whole file requests that can finish while meeting this requirement. At that maximum, find the idle time in ms to one decimal place and the processor utilization as a percentage to two decimal places. Processor utilization counts both application execution and operating-system execution as busy time.
Unlock full course notes by signing up
Use processor time during a device wait
On a computer with one processing core, a photo application is waiting for a storage device to return requested data. A calculator process is ready to execute. Assume the device request can continue without the photo application executing instructions. Which action best explains how the operating system can keep useful work progressing?
Check permissions across a file copy
A copying application must read a source file and create a new file in a destination folder. In this simplified permission model, copying is authorized only when both source-read permission and destination-create permission are granted. The destination names are unused, and all other checks have passed. Complete the table with yes or no to show whether each copy is authorized.
Apply the processor's privilege boundary
A school computer uses user mode for restricted application execution and kernel mode for privileged operating-system execution. Its processor permits ordinary arithmetic and access to an application's own allocated memory in user mode. Disabling hardware interrupts and changing protected device control registers require kernel mode.
For each operation, enter yes if the application's instructions can perform it directly in user mode, or no if they cannot. Assume every memory address mentioned as belonging to the application is valid and accessible.
Separate protection, persistence, and completion
A drawing application successfully saves a report to storage and submits a print job. The operating system accepts the job into a queue, but the printer is unavailable. Later, the application attempts a write outside its permitted memory, which the operating system blocks, and the application stops. Assume the saved file is unchanged and the print queue belongs to the operating system. Which statements are supported? Select all that apply.