Lecture Recording Access
- 27Unfamiliar
- 0Learning
- 0Familiar
- 0Mastered
- spaceFlip card
- KI knew it
- DI didn't know it
- ←Previous card
- →Next card
What are the three main types of user interfaces for operating systems?
Graphical User Interface (GUI), Command-Line Interface (CLI), and Batch Interface.
Or swipe the card
27 cards
What are the three main types of user interfaces for operating systems?
Graphical User Interface (GUI), Command-Line Interface (CLI), and Batch Interface.
What is an advantage of a Command-Line Interface (CLI) over a Graphical User Interface (GUI)?
CLIs are faster and use fewer system resources, but they require the user to know specific commands.
What is batch processing in an operating system?
Batch processing runs a set of jobs (e.g., transactions) automatically at a scheduled time, often during off-peak hours to use resources efficiently.
List at least five services provided by an operating system.
File system management, device management, communication between processes, error detection, resource allocation, accounting (usage tracking), and protection/security.
How does the operating system handle file management?
It provides mechanisms to create, read, write, delete, and organize files, abstracting away the storage device type (HDD, SSD, USB).
What is accounting in an operating system?
Accounting tracks resource usage (e.g., CPU time, memory, storage) per user or process, often for billing or quota enforcement.
How does the operating system provide protection and security?
It controls access to resources through mechanisms like user authentication, file permissions, and process isolation.
What is an API (Application Program Interface) in the context of an operating system?
An API is a set of system calls that programs use to request services from the OS, such as opening a file or printing.
Give an example of a system call for file copying.
A system call like
copy(source, destination)copies a file by specifying the source and destination file names.What is a process in an operating system?
A process is a program in execution, including its current activity, memory, and resources.
What is the difference between single-tasking and multitasking operating systems?
Single-tasking runs only one process at a time (e.g., MS-DOS), while multitasking allows multiple processes to run concurrently by sharing CPU time.
What is the difference between a single-user and a multi-user operating system?
Single-user OS allows only one user at a time (e.g., MS-DOS, typical Windows), while multi-user OS supports multiple users simultaneously (e.g., Unix, mainframes).
Describe the memory layout of a single-tasking OS like MS-DOS.
Low memory contains the OS kernel, then the command interpreter is loaded. When a program is run, it loads into memory above the interpreter. After the program exits, control returns to the interpreter.
Describe the memory layout of a multitasking OS like Unix.
The kernel is loaded at the bottom of memory. Multiple processes can be loaded in various free memory locations simultaneously, and the OS switches between them.
What is a kernel in an operating system?
The kernel is the core, most protected part of the OS that manages system resources and provides essential services. It is loaded at boot time and remains in memory.
What is a microkernel?
A microkernel is a minimal kernel that includes only the essential services (e.g., communication, memory management, scheduling), while other services (file system, device drivers) run as user-space processes.
What are the advantages and disadvantages of a microkernel?
Advantages: Better security and easier to extend (add new services). Disadvantages: Slower performance due to increased communication overhead between kernel and services.
What is a hybrid kernel?
A hybrid kernel combines aspects of monolithic and microkernel designs, keeping some services in the kernel for performance while allowing others to be loaded as modules (e.g., Windows, Mac OS).
What is a loadable kernel module?
A loadable kernel module is a piece of code that can be added to or removed from the kernel at runtime to extend functionality (e.g., device drivers, file systems).
Describe the structure of a simple operating system like MS-DOS.
MS-DOS has a simple layered structure: the kernel, device drivers (some built-in), and the command interpreter. It does not enforce hardware protection, so programs can access hardware directly.
Describe the structure of the Unix operating system kernel.
Unix uses a monolithic kernel that includes all major services (file system, device drivers, networking) in one protected area. It executes in kernel mode and provides system calls to user programs.
How does Android's operating system architecture differ from standard Linux?
Android is based on a Linux kernel but adds power management, a Dalvik Virtual Machine (for running Java apps), and a custom user interface. It uses a microkernel-like approach for some services.
What is the boot process of an operating system?
- The computer checks hardware (screen, keyboard). 2. Initial boot code runs. 3. The OS finds the operating system on storage (e.g., hard disk). 4. Loads the kernel into memory. 5. Transfers control to the kernel.
What is a virtual machine (VM) and how is it used in operating systems?
A VM is software that emulates a physical computer, allowing multiple operating systems to run on one host. For example, VirtualBox can run Linux on Windows.
What is the purpose of a device driver?
A device driver is a software component that allows the operating system to communicate with a specific hardware device (e.g., keyboard, printer).
Name three system programs commonly found in Unix-like operating systems.
Examples:
ls(list files),ping(test network connectivity),python(run Python interpreter).What is the role of the command interpreter (shell) in an OS?
The shell reads user commands and executes them. It can run built-in commands (e.g.,
dir) or launch external programs (e.g.,python).

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