Question 41
MediumWhy is DMA more efficient than programmed I/O for large transfers?
- A.
Popular companies
Prepare company by company
Hiring pattern, syllabus, past questions and mocks for each company.
All companiesPractice by subject
Operating Systems
Why is DMA more efficient than programmed I/O for large transfers?
The CPU is not involved in moving each byte or word
DMA uses a faster disk
DMA skips error checking
DMA compresses the data
Sign up free to see the answer and a step-by-step explanation.
In a pre-emptive time-sharing OS, what usually triggers a switch from one process to another?
A power failure
The user pressing a key
A timer interrupt at the end of the time slice
The disk becoming full
Sign up free to see the answer and a step-by-step explanation.
What is a loadable kernel module?
A file that holds the boot loader
A user program stored in ROM
Code, such as a device driver, that can be added to or removed from a running kernel
A backup of the kernel
Sign up free to see the answer and a step-by-step explanation.
What is POSIX?
A CPU instruction set
A family of standards defining a common API for Unix-like operating systems
A type of file system
A Windows-only library
Sign up free to see the answer and a step-by-step explanation.
How does a Type 1 hypervisor differ from a Type 2 hypervisor?
Type 1 runs directly on the hardware; Type 2 runs as an application on a host operating system
There is no difference
Type 1 runs only one virtual machine
Type 2 is always faster
Sign up free to see the answer and a step-by-step explanation.
How does a container (such as a Docker container) differ from a virtual machine?
Containers each run their own kernel
VMs share the host's kernel
Containers cannot run applications
Containers share the host's kernel, so they are lighter than VMs, which each run a full guest OS
Sign up free to see the answer and a step-by-step explanation.
What is the difference between a buffer and a cache?
A buffer holds data in transit between devices; a cache holds copies of data for faster repeated access
They are the same thing
A buffer exists only in the CPU
A cache holds data in transit; a buffer speeds up repeated access
Sign up free to see the answer and a step-by-step explanation.
What is the PATH environment variable used for in a shell?
Listing the directories the shell searches to find a command's program
Storing the current directory
Holding the user's password
Setting the screen colours
Sign up free to see the answer and a step-by-step explanation.
What does the Linux command ps show?
The contents of a file
The free disk space
Information about running processes
The network configuration
Sign up free to see the answer and a step-by-step explanation.
What does kill -9 <PID> do in Linux?
Restarts the process
Sends SIGKILL, which ends the process immediately and cannot be caught
Pauses the process
Lowers the process's priority
Sign up free to see the answer and a step-by-step explanation.