Chapter 1 Flashcards

1
Q

Resource Allocator

A

Allocates resources to specific programs and users so that it can operate the computer system efficiently and fairly.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Control Program

A

Manages the execution of user programs to prevent errors and improper use of the computer, and it is specially concerned with the operation and control of I/O devices.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Operating system

A

The program running at all times on the computer, usually called the Kernel.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Kernel

A

The OS components running on the computer at all times after system boot.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Two types of programs:

A

System programs and Application programs

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

System programs

A

Are associated with the OS but are not necessarily part of the kernel

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Application programs

A

Include all programs not associated with the operation of the system.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Middleware

A

Is a set of software frameworks that provide additional services to application developers.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Device Driver

A

An operating system component that provides uniform access to various devices and manages I/O to those devices

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Bus

A

provides access between components and shared memory

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Device driver

A

understands the device controller and provides the rest of the operating system with a uniform interface to the device.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What is used to ensure orderly access to the memory

A

a memory controller synchronizes access to the memory

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Interrupts

A

Alert the CPU to events that require attention.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

The controller informs the device driver that it has finished its operation via:

A

An interrupt

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

Hardware may trigger an interrupt at any time by ending a signal to the:

A

CPU

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

Table of pointers

A

They are used to provide the necessary speed to handle interrupts.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
17
Q

Interrupt Vector

A

An OS data structure indexed by interrupt address and pointing to the interrupt handlers. a Kernel memory data structure that holds addresses of the interrupt service routings for the various devices.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
18
Q

EEPROM

A

Electrically Erasable Programable Read-Only Memory.
- Low speed.
- contains mostly static programs and data that aren’t frequently used.

19
Q

The main difference among the various storage system lies in:

A

Speed, size (storage), and volatility.

20
Q

Storage device hierarchy

A

1) Registers (primary storage)
2) Cache (primary storage)
3) Main memory (primary storage)
4) Non-volatile memory (secondary storage)
5) HDDs (secondary storage)
6) Optical disk (tertiary storage)
7) Magnetic tapes ( tertiary storage)

21
Q

Mechanical Storage

A

HHDs, optical disks, holographic storage, magnetic tapes.

22
Q

Electrical Storage (NVM)

A

Flash memory, FRAM, NRAM, SSD.

23
Q

Direct Memory Access (DMA)

A
  • Prevents overhead when transferring bulk data such as NVS I/O.
  • Transfer an entire block of data from/to device to main memory.
  • One interrupt is created, letting the CPU know that the transfer has completed.
  • Prevents creating one interrupt for each byte of data.
24
Q

CPU

A

The hardware that executes instruntion

25
Processor
A physical chip that contains one ore more CPUs
26
Core
The core is the component that executes instructions and registers for storing data locally. The basic computation unit of the CPU.
27
Symmetric multiprocessing (SMP)
The most common multiprocessor systems use symmetric multiprocessing (SMP), in which each peer CPU processor performs all tasks, including operating-system functions and user processes. Problem: Since the CPUs are separate, one may be sitting idle while another is overloaded, resulting in inefficiencies.
28
Non-uniform memory Access (NUMA)
The CPUs are connected by a shared system interconnect, so that all CPUs share one physical address space. This approach—known as non-uniform memory access, or NUMA.
29
Timesharing (Multitasking)
It’s a logical extension in which CPU switches jobs so frequently that users can interact with each job while it is running, creating interactive computing. - Response time < 1s - CPU scheduling - Clock interrupts at regular intervals Advantages: - Same as multi programming plus low response time Disadvantages: - same plus less efficient since spend a lot of time switching jobs
30
CPU Scheduling
When several jobs are ready to run at the same time.
31
Swapping
If processes don’t fit in memory, swapping moves them in and out to run.
32
Virtual Memory
Allows execution of processes not completely in memory
33
program vs process
34
Program counter
35
Dual-mode
Operation allows OS to protect itself and other system components
36
Two Modes
User mode and kernel mode.
37
Mode bit provided by hardware
Provides ability to distinguish when system is running user code or kernel code. Some instructions are designated as privileged, only executable in kernel mode.
38
Virtual machine manager (VMM)
In leasing CPU support with multi-mode operations.
39
Timer
To prevent infinite loop / process hogging resources. Interrupts the computer after some time period. Keep a counter that is decremented by the physical clock OS set the counter (privileged instruction) When counter zero generate an interrupt
40
The OS is responsible for the following activities in the connection with process management:
- Creating and deleting both user and system processes - suspending and resuming processes - providing mechanisms for - process synchronization - process communication - deadlock handling
41
Deadlock
When two or more processes both need a resource that the other one has, and as a result it can’t make forward progress.
42
Cache coherency
Multiprocessors environment must provide cache coherency in hardware such that all CPUs have the most recent value in their cache.
43
Spooling
Process of saving up to the file until the output device is ready to accept it.