Operating System Components
- 49Unfamiliar
- 0Learning
- 0Familiar
- 0Mastered
- spaceFlip card
- KI knew it
- DI didn't know it
- ←Previous card
- →Next card
What are the two main components of an operating system?
User space and the kernel.
Or swipe the card
49 cards
What are the two main components of an operating system?
User space and the kernel.
What happens in user space?
User applications run there, and it provides an environment for users and developers to work with applications.
What is the kernel, and how does it relate to hardware?
The kernel is the core of the operating system and has access to the underlying hardware.
How does a user-space application request work that requires hardware access?
It requests the kernel to perform the work; the kernel communicates with the hardware.
What does GUI stand for, and how does a user interact with it?
GUI stands for graphical user interface. Users interact with graphical elements such as icons and buttons, often using a mouse.
What does CLI stand for, and how does a user interact with it?
CLI stands for command-line interface. Users enter commands that the system executes.
What are examples of graphical and command-line interfaces mentioned for operating systems?
A desktop with icons is a GUI; terminals, Windows PowerShell, and command prompts are CLI examples.
What is a shell in the context of a command-line interface?
A shell is an implementation of the CLI that receives user commands and gets them executed.
How can creating a folder through a GUI relate to the
mkdircommand?A GUI folder-creation action can invoke directory-creation functionality internally; in a CLI,
mkdiris used to create a directory.What are the four main functions of the kernel described in the content?
Process management, memory management, file management, and I/O management.
What tasks are part of process management?
Creating and terminating processes, scheduling them, and coordinating their execution.
What goals can process scheduling pursue?
Efficient resource utilization, running higher-priority processes appropriately, and preventing process starvation.
What does context switching involve in kernel process management?
The kernel switches execution between processes as part of managing their execution.
What is memory management responsible for?
Allocating and deallocating memory and keeping track of available or free memory areas.
Why must the operating system track free memory areas?
It needs to know which areas are vacant so it can allocate space to new jobs or processes.
What are examples of file-management tasks?
Creating and deleting files.
How does directory management organize files?
It maintains a hierarchical, tree-like directory structure, with directories and files arranged beneath a root.
Why is a tree-like directory structure useful?
It organizes files hierarchically, making their locations and paths manageable to navigate.
What does I/O management do when a device such as a USB drive is connected?
It manages and controls I/O operations and devices, recognizes the connected device, and enables the user to access it.
How does the kernel help make a newly connected device accessible through a GUI?
The kernel handles the device and sends information to user space, where the system can provide a way to access it through the GUI.
What is the relationship between the kernel and the operating system's startup?
The kernel is the first operating-system component to load at startup.
What is the difference between user mode and kernel mode?
User mode runs user-level work with limited hardware access; kernel mode runs kernel work with greater hardware access.
What happens when the CPU is in user mode or kernel mode?
In user mode, it performs user-mode work; in kernel mode, it performs kernel-mode work.
What is a software interrupt in the described mode-switching process?
An interrupt generated by software or the operating system that can trigger a switch between user mode and kernel mode.
What is a hardware interrupt?
An interrupt generated by hardware to notify the operating system of an event or problem.
How does running
mkdirillustrate a switch from user mode to kernel mode?The command is entered in user mode; when directory creation is needed, the request goes to the kernel's file-management function, and the result is returned to the user.
What defines a monolithic kernel?
Its major operating-system functions, including process, memory, file, and I/O management, are implemented in the kernel.
What is a key advantage of a monolithic kernel?
Communication among its components is efficient because they are together in the kernel.
What are two disadvantages of a monolithic kernel?
It can be bulky and less reliable: a failure in one interconnected component can affect the whole kernel.
Which operating systems are given as examples of monolithic kernels?
Linux, Unix, and MS-DOS.
What defines a microkernel in the described design?
It keeps core functions—process management and memory management—in the kernel while placing file and I/O management in user space.
Why can a microkernel be more reliable or stable than a monolithic kernel?
Moving some functions, such as file and I/O management, out of the kernel can reduce the chance that their failure will stop the kernel.
Why can a microkernel have lower performance?
Its functions may require repeated switches between user mode and kernel mode, adding switching overhead.
Which systems are given as examples of microkernels?
L4 Linux, Symbian OS, and MINIX.
What defines a hybrid kernel in the described design?
It combines approaches: process, memory, and I/O management are in the kernel, while file management is in user space.
How does a hybrid kernel combine features of monolithic and microkernels?
It aims to retain the speed and design strengths associated with monolithic kernels and the modularity and stability associated with microkernels.
Why can the described hybrid design reduce switching overhead compared with a microkernel?
I/O management is kept in the kernel rather than user space, reducing some transitions between user and kernel modes.
What limitation of the described hybrid design is noted?
If I/O management fails, the kernel may also fail.
Which systems are given as examples of hybrid kernels?
Mac OS and Windows NT, including Windows 7 and Windows 10 as described in the content.
What does IPC stand for, and what problem does it address?
IPC stands for interprocess communication. It enables processes to communicate even though they operate independently and may be isolated from one another.
What are the two IPC methods described?
Shared memory and message passing.
How does shared-memory IPC work?
Processes use a shared memory area: one writes data there, and another reads it.
How does message-passing IPC work?
Processes communicate by sending messages through a channel or pipe, using operating-system-provided functions.
How can processes running in different parts of the system, such as user space and kernel space, communicate?
They can use IPC, including shared memory or message passing.
Which three I/O-management techniques are named?
Spooling, buffering, and caching.
What is spooling?
Spooling stores data for jobs in advance in an area so it can be processed by a slower device.
How does printer spooling work in the example?
When multiple print jobs are submitted quickly, they are stored in a spool area and sent to the slower printer for processing.
What is buffering, as described in the content?
Buffering stores data in advance for use shortly afterward within a job or process.
What example is given for buffering?
YouTube is mentioned as an example of buffering.

Ask anything
We've read this whole study set, so questions about it get the best answers.