Join 75,000+ students acing their exams with Studygenie
Unlimited practice
Flashcards, multiple choice and written questions, as many as you want.
Study sets in seconds
Turn your notes and files into a set with AI.
See your progress
Always know what you've learned and what's left.
Questions in this set (43)
How does polling contribute to I/O operations in a computer system?
It determines whether a device is busy or idle by reading a flag
How does an external interrupt contribute to I/O operations?
It signals the OS about the completion of an I/O operation
What is the primary function of an interrupt in operating systems?
To divert program execution to a predefined kernel location in response to an event
How does an interrupt handler interact with the kernel?
It invokes appropriate kernel functions to respond to the interrupt
How does programmed I/O differ from interrupt-driven I/O?
It continuously checks device status instead of waiting for interrupts
What is a primary purpose of using interrupts for timesharing?
To periodically switch the CPU among multiple concurrent computations
What security benefit does restricting system calls provide?
It prevents calls from traveling to arbitrary locations within the kernel
How does a trap differ from an external interrupt?
A trap is triggered by the currently executing instruction
What is the role of an interrupt handler in an operating system?
To determine the cause of an interrupt and invoke appropriate kernel functions
What is a key disadvantage of using programmed I/O?
The CPU is fully occupied and cannot perform other tasks during data transfer
How does multiprogramming improve CPU utilization?
By keeping several programs active in memory and switching execution between them
How does an Operating System (OS) support users in computer systems?
It provides support for users to develop and use applications
How do library functions extend the functionality of the OS kernel?
By invoking kernel functions to offer more convenient services to higher-level software
What distinguishes timesharing from basic multiprogramming?
The CPU is switched periodically among all active computations
What is the role of an interrupt handler in an operating system?
To determine the cause of an interrupt and invoke the appropriate kernel function
What is the primary function of a system call in an operating system?
To request an OS service from an application
How does virtualization contribute to operating system functionality?
By creating an illusion of having one or more desirable characteristics than the real object
What is the primary purpose of abstraction in computing?
To remove unimportant details and create a less complex object
Why are privileged instructions restricted to kernel mode execution?
To safely manage system resources and perform critical operations
How does a supervisor call affect CPU execution mode?
It switches execution from user mode to kernel mode by setting the mode bit in the CPU
operating system (OS)
the software that runs on the bare hardware of a computer and provides essential support for users to develop and use applications in the most efficient and safe manner.
Abstraction
is the act of removing unimportant details or attributes of objects in order to construct more general and less complex objects.
Virtualization
is the act of creating the illusion of having one or more objects with more desirable characteristics than the real object.
Multiprogramming
is a technique that keeps several programs active in memory and switches execution among the different programs to maximize the use of the CPU and other resources.
Time-sharing (multitasking)
is an extension of multiprogramming where the CPU is switched periodically among all active computations to guarantee acceptable response times to each user.
The kernel
minimal set of functions necessary to manage the system resources safely and efficiently.
privileged instruction
performs critical operations that access I/O devices and the CPU's status and control registers.
Kernel mode
is the CPU state where both privileged and non-privileged instructions may be used
User modee
is the CPU state where only non-privileged instructions may be used.
graphical user interface (GUI)
presents various icons on the screen, which the user can click on in different ways to invoke services associated with the icons, or to reveal pull-down menus for additional tasks.
The OS shell
command interpreter that accepts and interprets textual commands issued by the user via a keyboard.
shell script
a program that implements a new operation by combining multiple commands and control statement into one named unit interpreted by the shell.
system call
request from an application for an OS service. A system call is implemented as a library function, which sets up the necessary parameters for the requested operation and issues a corresponding supervisor call.
supervisor call (kernel call)
privileged instruction that automatically transfers execution control to a well-defined location within the OS kernel. Thus supervisor calls provide the interface between the OS kernel and the higher-level software.
interruptt
an event that diverts the current execution of a program to a predefined location in the kernel in order to respond to an event.
trap(internal interrupt)
(also called an internal interrupt) is an interrupt triggered by the currently executing instruction.
interrupt handler
a kernel function, invoked whenever an interrupt occurs, that determines the cause of the interrupt and invokes the appropriate kernel function to provide the response
Moore's law
formulated by the scientist Gordon Moore, is the observation that the number of transistors in an integrated circuit doubles about every two years.
device controller (device adapter)
is an electronic circuit capable of operating a specific I/O device using binary signals.
device driver
is a device-specific program that implements I/O operations, requested by user applications or the OS, by interacting with the device controller.
Programmed I/O
is a style of I/O programming where the CPU, running the device driver, performs the copying of all data between the I/O device controller and main memory.
Pollingggg
is a technique to determine whether a device is busy or idle by reading a flag set and reset by the device controller.
direct memory access (DMA)
is a hardware component that allows devices to access main memory directly, without the involvement of the CPU.