Operating Systems: Chapter 1 Definitions

Choose a study mode

Play Quiz
Study Flashcards
Spaced Repetition
Chat to Lesson

Podcast

Play an AI-generated podcast conversation about this lesson

Questions and Answers

Which of the following BEST describes the primary function of the kernel?

  • Executing application programs directly.
  • Managing the computer's resources and providing a basis for application programs. (correct)
  • Providing a user interface for interacting with applications.
  • Providing middleware services to application developers.

Which of the following is NOT typically considered a system program?

  • A text editor.
  • A command-line interpreter.
  • A web browser. (correct)
  • A file manager.

Middleware primarily aims to:

  • Provide a consistent interface for the kernel.
  • Directly manage the system hardware.
  • Replace the operating system kernel.
  • Offer additional services to application developers, especially in mobile OSes. (correct)

How do the roles of a resource allocator and a control program differ within an operating system?

<p>A resource allocator manages resources, while a control program controls program execution. (C)</p> Signup and view all the answers

Which component enables the computer to interact with the external environment?

<p>I/O Devices (C)</p> Signup and view all the answers

What is the purpose of a 'device driver'?

<p>To provide a uniform software interface for a device controller. (C)</p> Signup and view all the answers

What is the role of an Interrupt Service Routine (ISR)?

<p>To handle a specific type of interrupt. (A)</p> Signup and view all the answers

How does a trap (or exception) differ from a typical interrupt?

<p>A trap is software-generated, while an interrupt is hardware-generated. (B)</p> Signup and view all the answers

Which of the following describes the function of a bootstrap program?

<p>It loads the operating system when the computer starts. (A)</p> Signup and view all the answers

What is the key characteristic of volatile storage?

<p>It loses data when power is lost. (B)</p> Signup and view all the answers

Which storage type is best suited for long-term data and program storage?

<p>Secondary Storage (D)</p> Signup and view all the answers

How does DMA improve system performance?

<p>By transferring data between I/O devices and memory without CPU intervention. (D)</p> Signup and view all the answers

Arrange the following units of storage in ascending order of size: Byte, Bit, Kilobyte, Terabyte

<p>Bit, Byte, Kilobyte, Terabyte (C)</p> Signup and view all the answers

What characteristic defines a multicore system?

<p>Multiple processing cores on a single CPU chip. (D)</p> Signup and view all the answers

How does SMP differ from NUMA?

<p>In SMP, all CPUs are peers; in NUMA, CPUs have local memory. (C)</p> Signup and view all the answers

What is a primary goal of a clustered system?

<p>High availability of services. (C)</p> Signup and view all the answers

What is the process of parallelization?

<p>Dividing an applications into smaller parts that can be run simulataneously. (C)</p> Signup and view all the answers

What is the main purpose of multiprogramming?

<p>To increase CPU utilization by keeping multiple processes in memory. (B)</p> Signup and view all the answers

What is the key characteristic of multitasking (time sharing)?

<p>Rapidly switching the CPU between processes to give the illusion of simultaneous execution. (A)</p> Signup and view all the answers

What is the primary benefit of virtual memory?

<p>It allows the execution of processes that are not completely in memory. (C)</p> Signup and view all the answers

Explain the difference between kernel mode and user mode.

<p>Kernel mode allows execution of all instructions, while user mode restricts instructions. (D)</p> Signup and view all the answers

What is the purpose of the mode bit?

<p>To indicate the current CPU mode (user or kernel). (B)</p> Signup and view all the answers

What is a privileged instruction?

<p>An instruction that can only be executed in kernel mode. (C)</p> Signup and view all the answers

When is a system call typically used?

<p>When a user program requires a service from the OS. (B)</p> Signup and view all the answers

What is the function of a timer in an operating system?

<p>To generate an interrupt after a specified period. (A)</p> Signup and view all the answers

What is the purpose of protection rings in an operating system?

<p>Levels of protection for system resources, limiting access based on privilege. (B)</p> Signup and view all the answers

How does the concept of a 'file' relate to resource management in an OS?

<p>A file is a logical storage unit, representing a collection of related information. (A)</p> Signup and view all the answers

What is the main function of a cache in computer systems?

<p>To provide a set of faster storage to improve access times (B)</p> Signup and view all the answers

How do 'protection' and 'security' differ in the context of operating systems?

<p>Protection is any mechanism that controls access, while security defends against attacks. (A)</p> Signup and view all the answers

What is the role of a User Identifier (UID) in an operating system?

<p>unique per user, how the user is referenced in the system (C)</p> Signup and view all the answers

What is the purpose of a Group Identifier (GID)?

<p>To allow set of users to have specific permissions. (C)</p> Signup and view all the answers

Which of the following describes virtualization?

<p>Abstracting hardware to provide different execution enviornments. (D)</p> Signup and view all the answers

How does emulation differ from virtualization?

<p>Emulation runs a set a hardware using software, while virtualization abstracts hardware resources. (C)</p> Signup and view all the answers

Which of the following is NOT a key function of the Operating System?

<p>Executing user application code directly. (B)</p> Signup and view all the answers

Why is understanding the 'why' behind an OS definition just as imperative as memorizing the definition itself?

<p>Understanding enables application of the concept in different scenarios. (D)</p> Signup and view all the answers

To detect interrupts, what does the CPU sense?

<p>Interrupt-Request Line. (D)</p> Signup and view all the answers

Which of the following characteristic is associated with Firmware?

<p>Storage that is infrequently written to and is nonvolatile. (B)</p> Signup and view all the answers

Which memory location does the CPU directly access to fetch instructions and data?

<p>Memory (RAM) (D)</p> Signup and view all the answers

What is the function of System Daemons?

<p>Background processes providing system services. (B)</p> Signup and view all the answers

Flashcards

Operating System (OS)

Software that manages computer hardware and provides a basis for application programs.

Kernel

The core of the OS; the program that's always running.

System Programs

Programs associated with the OS but not part of the kernel.

Application Programs

Programs not associated with the operation of the system.

Signup and view all the flashcards

Middleware

Software frameworks providing additional services to application developers (common in mobile OSes).

Signup and view all the flashcards

Resource Allocator

Managing and allocating resources (CPU, memory, etc.).

Signup and view all the flashcards

Control Program

Controls the execution of user programs.

Signup and view all the flashcards

Hardware

The physical components of a computer system.

Signup and view all the flashcards

User

Anyone who uses the computer.

Signup and view all the flashcards

CPU (Central Processing Unit)

The hardware that executes instructions.

Signup and view all the flashcards

Memory

Storage where the CPU directly accesses instructions and data.

Signup and view all the flashcards

I/O (Input/Output) Devices

Devices that allow the computer to interact with the outside world.

Signup and view all the flashcards

System Bus

A communication pathway connecting the CPU, memory, and I/O devices.

Signup and view all the flashcards

Device Controller

Hardware that manages a specific type of device.

Signup and view all the flashcards

Device Driver

Software that provides a uniform interface to the OS for a device controller.

Signup and view all the flashcards

Interrupt

A signal to the CPU that an event requires attention.

Signup and view all the flashcards

Interrupt Service Routine (ISR)

A routine that handles a specific type of interrupt.

Signup and view all the flashcards

Interrupt Vector

A table of addresses pointing to the ISRs for different interrupt types.

Signup and view all the flashcards

Interrupt-Request Line

A wire that the CPU senses to detect interrupts.

Signup and view all the flashcards

Trap (or Exception)

A software-generated interrupt caused by an error or a system call.

Signup and view all the flashcards

Nonmaskable Interrupt

A high-priority interrupt that cannot be ignored.

Signup and view all the flashcards

Maskable Interrupt

A low-priority interrupt that can be delayed or ignored.

Signup and view all the flashcards

Bootstrap Program

The first program that runs when a computer powers on; it loads the OS.

Signup and view all the flashcards

RAM (Random-Access Memory)

Volatile main memory.

Signup and view all the flashcards

Firmware

Storage that is infrequently written to and is nonvolatile.

Signup and view all the flashcards

Volatile Storage

Storage that loses its contents when power is lost.

Signup and view all the flashcards

Nonvolatile Storage

Storage that retains its contents when power is lost.

Signup and view all the flashcards

Secondary Storage

Nonvolatile storage used for long-term data and program storage.

Signup and view all the flashcards

HDD (Hard-Disk Drive)

A mechanical secondary storage device.

Signup and view all the flashcards

NVM (Nonvolatile Memory) Device

An electrical secondary storage device.

Signup and view all the flashcards

DMA (Direct Memory Access)

A method for transferring data between I/O devices and memory without CPU intervention.

Signup and view all the flashcards

Bit

Smallest storage, either a one or a zero.

Signup and view all the flashcards

Byte

A set of 8 bits.

Signup and view all the flashcards

Word

One or more bytes, dependent on architecture.

Signup and view all the flashcards

Kilobyte, Megabyte, Gigabyte, Terabyte, Petabyte

1024 bytes, 1024^2 bytes, 1024^3 bytes, 1024^4 bytes, 1024^5 bytes

Signup and view all the flashcards

Processor

A physical chip that contains one or more CPUs.

Signup and view all the flashcards

Core

The basic computation unit of the CPU.

Signup and view all the flashcards

Multicore System

A system with multiple processing cores on a single CPU chip.

Signup and view all the flashcards

Multiprocessor System

A system with multiple processors (which may be single-core or multicore).

Signup and view all the flashcards

SMP (Symmetric Multiprocessing)

A multiprocessor system where all CPUs are peers and can perform any task.

Signup and view all the flashcards

NUMA (Non-Uniform Memory Access)

A multiprocessor system where each CPU has its own local memory, but all CPUs can access all memory.

Signup and view all the flashcards

Clustered System

Multiple independent computer systems working together, often for high availability.

Signup and view all the flashcards

High Availability

The ability of a system to continue providing service even if some components fail.

Signup and view all the flashcards

Parallelization

The process of taking an application and breaking it down into smaller pieces to be run at the same time

Signup and view all the flashcards

System Daemons

Background processes that provide system services.

Signup and view all the flashcards

Multiprogramming

Keeping multiple processes in memory at the same time to increase CPU utilization.

Signup and view all the flashcards

Multitasking (Time Sharing)

Rapidly switching the CPU between processes to give the illusion of simultaneous execution and provide fast response times.

Signup and view all the flashcards

Process

A program in execution.

Signup and view all the flashcards

Virtual Memory

A technique that allows the execution of processes that are not completely in memory.

Signup and view all the flashcards

User Mode

A CPU mode in which only non-privileged instructions can be executed.

Signup and view all the flashcards

Kernel Mode

A CPU mode in which all instructions, including privileged ones, can be executed.

Signup and view all the flashcards

Mode Bit

A hardware bit that indicates the current CPU mode (user or kernel).

Signup and view all the flashcards

Privileged Instruction

An instruction that can only be executed in kernel mode.

Signup and view all the flashcards

System Call

A request from a user program for the OS to perform a service.

Signup and view all the flashcards

Timer

A hardware mechanism that can generate an interrupt after a specified period.

Signup and view all the flashcards

Protection Rings

Provide levels of protection for system resources

Signup and view all the flashcards

File

A logical storage unit, representing a collection of related information.

Signup and view all the flashcards

Cache

A set of faster storage for quicker access.

Signup and view all the flashcards

Protection

Any mechanism that controls access to system resources.

Signup and view all the flashcards

Security

Defending against external and internal attacks on the system.

Signup and view all the flashcards

User Identifier

A unique identifier for each user in the system.

Signup and view all the flashcards

Group Identifier

Allows a set of users to have specific permissions and access rights.

Signup and view all the flashcards

Virtualization

Abstracting computing hardware allowing multiple environments

Signup and view all the flashcards

Emulation

Running a set of hardware using software

Signup and view all the flashcards

Study Notes

  • Important key definitions from Chapter 1 for a midterm exam

General Concepts

  • Operating System (OS): Manages computer hardware, provides a basis for applications, and acts as an intermediary between the user and hardware.
  • Kernel: The core of the OS; the one program running at all times.
  • System Programs: Programs associated with the OS but not necessarily part of the kernel.
  • Application Programs: Programs not associated with the operation of the system.
  • Middleware: Software frameworks providing additional services to application developers, mainly in mobile OSes.
  • Resource Allocator: Manages and allocates resources.
  • Control Program: Controls the execution of user programs.

What Operating Systems Do

  • Hardware: The physical components of a computer system like the CPU, memory, and I/O devices.
  • User: Anyone who uses the computer.

Computer-System Organization

  • CPU (Central Processing Unit): Executes instructions.
  • Memory: Storage where the CPU can directly access instructions and data, typically RAM.
  • I/O (Input/Output) Devices: Devices that allow computer interaction with the outside world (e.g., keyboard, mouse, monitor, disk drive).
  • System Bus: A communication pathway connecting the CPU, memory, and I/O devices.
  • Device Controller: Hardware that manages a specific type of device.
  • Device Driver: Software providing a uniform interface to the OS for a specific device controller.
  • Interrupt: A signal to the CPU that an event requires attention.
  • Interrupt Service Routine (ISR): A routine that handles a specific type of interrupt.
  • Interrupt Vector: A table of addresses pointing to the ISRs for different interrupt types.
  • Interrupt-Request Line: A wire that the CPU senses to detect interrupts.
  • Trap (or Exception): A software-generated interrupt, caused by an error or a system call.
  • Nonmaskable Interrupt: High priority interrupt
  • Maskable Interrupt: Low priority interrupt
  • Bootstrap Program: The first program that runs when a computer powers on; it loads the OS.
  • RAM (Random-Access Memory): Volatile main memory.
  • Firmware: Storage that is infrequently written to and is nonvolatile (e.g., EEPROM).
  • Volatile Storage: Loses its contents when power is lost.
  • Nonvolatile Storage: Retains its contents when power is lost.
  • Secondary Storage: Nonvolatile storage used for long-term data and program storage (e.g., HDDs, NVM devices).
  • HDD (Hard-Disk Drive): A mechanical secondary storage device.
  • NVM (Nonvolatile Memory) Device: An electrical secondary storage device (e.g., SSD, flash memory).
  • DMA (Direct Memory Access): A method for transferring data between I/O devices and memory without CPU intervention.
  • Bit: Smallest storage unit, either a one or a zero.
  • Byte: A set of 8 bits.
  • Word: One or more bytes, dependent on architecture.
  • Kilobyte: 1024 bytes
  • Megabyte: 1024^2 bytes
  • Gigabyte: 1024^3 bytes
  • Terabyte: 1024^4 bytes
  • Petabyte: 1024^5 bytes

Computer-System Architecture

  • Processor: A physical chip containing one or more CPUs.
  • Core: The basic computation unit of the CPU.
  • Multicore System: A system with multiple processing cores on a single CPU chip.
  • Multiprocessor System: A system with multiple processors (which may be single-core or multicore).
  • SMP (Symmetric Multiprocessing): A multiprocessor system where all CPUs are peers and can perform any task.
  • NUMA (Non-Uniform Memory Access): A multiprocessor system where each CPU (or group) has its own local memory, but all CPUs can access all memory.
  • Clustered System: Multiple independent computer systems working together, often for high availability.
  • High Availability: The ability of a system to continue providing service even if some components fail.
  • Parallelization: Breaking down an application into smaller pieces to be run at the same time

Operating-System Operations

  • System Daemons: Background processes that provide system services.
  • Multiprogramming: Keeping multiple processes in memory at the same time to increase CPU utilization.
  • Multitasking (Time Sharing): Rapidly switching the CPU between processes to give the illusion of simultaneous execution and provide fast response times.
  • Process: A program in execution.
  • Virtual Memory: A technique that allows the execution of processes that are not completely in memory.
  • User Mode: A CPU mode in which only non-privileged instructions can be executed.
  • Kernel Mode (Supervisor Mode, System Mode, Privileged Mode): A CPU mode in which all instructions, including privileged ones, can be executed.
  • Mode Bit: A hardware bit that indicates the current CPU mode (user or kernel).
  • Privileged Instruction: An instruction that can only be executed in kernel mode.
  • System Call: A request from a user program for the OS to perform a service.
  • Timer: A hardware mechanism that can generate an interrupt after a specified period.
  • Protection Rings: Levels of protection for system resources.

Resource Management

  • File: A logical storage unit, representing a collection of related information.
  • Cache: A set of faster storage locations

Security and Protection

  • Protection: Any mechanism that controls access
  • Security: Defending against attacks
  • User Identifier: Unique per user, how the user is referenced in the system.
  • Group Identifier: Allows a set of users to have specific permissions

Virtualization

  • Virtualization: Abstracting hardware to provide different execution environments
  • Emulation: Running a set of hardware using software

Studying That Suits You

Use AI to generate personalized quizzes and flashcards to suit your learning preferences.

Quiz Team

More Like This

Use Quizgecko on...
Browser
Browser