Midterm 1 Flashcards
(71 cards)
What is an Operating System (OS)?
An OS is a program that acts as an intermediary between a user of a computer and the computer hardware.
What are the goals of an Operating System?
Execute user programs, make the computer system easy to use, utilize hardware efficiently.
What is the relationship in a computer system?
Computer system: Hardware ↔ OS ↔ Applications ↔ Users.
What are the two main roles of an OS?
Resource allocator and control program.
What is the kernel?
The one program running at all times on the computer.
What is a bootstrap program?
Loaded at power-up or reboot, initializes all aspects of the system, loads OS kernel and starts execution.
Where is the bootstrap program stored?
Stored in ROM or EPROM (known as firmware).
Can I/O and CPU execute concurrently?
Yes, I/O and CPU can execute concurrently.
How do device controllers inform the CPU?
By causing an interrupt.
What is a trap in the context of interrupts?
A software-generated interrupt caused by an error or user request.
What is a system call?
A request to the operating system to allow the user to wait for I/O completion.
What does the device-status table contain?
An entry for each I/O device indicating its type, address, and state.
What are the two types of storage structures?
Main memory (random access, volatile) and secondary storage (large non-volatile storage).
What is caching?
Copying information into a faster storage system.
What are multiprocessor systems?
Systems that increase throughput, economy of scale, and reliability.
What is multiprogramming?
Provides efficiency via job scheduling by switching to another job when the OS has to wait.
What is timesharing?
CPU switches jobs so frequently that each user can interact with each job while it is running.
What is dual-mode operation?
Allows OS to protect itself and other system components with user mode and kernel mode.
What is the difference between single-threaded and multi-threaded processes?
Single-threaded processes have one program counter, while multi-threaded processes have one PC per thread.
What is protection in an OS?
A mechanism for controlling access of processes or users to resources defined by the OS.
What is security in an OS?
Defense of a system against attacks.
What are User IDs (UID) and Group IDs?
Identifiers that determine which users and groups of users have which privileges.
What are the types of User Interfaces (UI)?
Command-Line Interface (CLI), Graphics User Interface (GUI), or Batch.
What are some system services helpful to users?
Program execution, I/O operations, file-system manipulation, communications, and error detection.