Question 31
MediumWhat is spooling most commonly used for?
- A.
Queuing print jobs on disk so the printer and programs work independently
Popular companies
Prepare company by company
Hiring pattern, syllabus, past questions and mocks for each company.
All companiesPractice by subject
Operating Systems
What is spooling most commonly used for?
Queuing print jobs on disk so the printer and programs work independently
Allocating memory to processes
Compressing files
Encrypting network traffic
Sign up free to see the answer and a step-by-step explanation.
Why do CPUs provide separate user and kernel (dual) modes?
To stop user programs from running privileged instructions that could harm the system
To store user data separately from kernel data on disk
To double the CPU's speed
To run two operating systems at once
Sign up free to see the answer and a step-by-step explanation.
Which of these is a C library function rather than a Unix system call?
open()
printf()
fork()
exec()
Sign up free to see the answer and a step-by-step explanation.
What mainly distinguishes a time-sharing system from a batch system?
It runs one job to completion before starting the next
It switches between users rapidly so each gets quick interactive response
It works only on mainframes
It has no operating system
Sign up free to see the answer and a step-by-step explanation.
What happens when a user program makes a system call?
The program runs faster in user mode
The CPU switches off
The CPU switches to kernel mode and runs the OS's handler for that call
The program is terminated
Sign up free to see the answer and a step-by-step explanation.
In which kernel design are device drivers and file systems usually run as user-space servers?
Monolithic kernel
Real-time kernel
Batch kernel
Microkernel
Sign up free to see the answer and a step-by-step explanation.
What is the main performance advantage of a monolithic kernel?
Its components run in kernel space and call each other directly, without message passing
It uses less memory than any other design
It never crashes
It needs no drivers
Sign up free to see the answer and a step-by-step explanation.
Which kind of kernel combines a microkernel-like structure with monolithic-style performance, as in Windows NT?
An exokernel
A hybrid kernel
A nanokernel
A batch kernel
Sign up free to see the answer and a step-by-step explanation.
What does the interrupt vector table contain?
The free memory blocks
The list of running processes
The user's passwords
The addresses of the handler routines for each interrupt
Sign up free to see the answer and a step-by-step explanation.
How does interrupt-driven I/O differ from polling?
Polling is always faster
With interrupts the device signals when it is ready; with polling the CPU keeps checking the device
Interrupts need no hardware support
There is no difference
Sign up free to see the answer and a step-by-step explanation.