Mid-term 1 Flashcards

1
Q

Bootstrap

A

Loads operating system kernel and stored in ROM. Initializes all aspects of system

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

Caching

A

Copying information into faster storage system; main memory can be viewed as a cache for secondary storage

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

Advantages of multiprocessors

A
  1. Increased throughput
  2. Economy of scale
  3. Increased reliability
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Dual-mode

A

User mode, Kernel mode - allows OS to protect itself. Allows ability to distinguish between kernel code and user code. Some instructions are ‘privelaged’: only run in kernel mode.

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

API

A

Application Programming Interface - provides interface for application programmers.

  1. Program portability (same code runs on any machine with same API)
  2. Less detailed, more abstracted
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

System Call

A

Provides an interface to the services made available my an operating system

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

Types of system calls

A
  1. Process control
  2. File manipulation
  3. Device manipulation
  4. Info maintenance
  5. Communications
  6. Protection
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Command Interpreters

A

CLI’s (Command Line Interface). Systems with multiple interpreters call them shells. Main function is to get and execute the next user-specified command

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

OS Structures - Simple

A

Only one or two levels of code - provides most functionality in least space, but is vulnerable

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

OS Structures - Layered

A

Lower levels independent of upper levels - More secure, but more overhead since layers can only communicate with one directly below it

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

OS Structures - Microkernels

A

OS built from many user processes - moves as many processes as possible to the ‘user’ space, small kernel. More reliable and secure, suffers performance overhead from user to kernel

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

OS Structures - Modules

A

Core kernel with dynamically loadable modules - Uses OO approach. Similar to layers, but more flexible

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

Virtual Machine

A

Software implementation of a computer that executes programs like a physical machine. System Machines exist independently on hardware, Process Machines run as an app inside an OS

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

Process Parts

A
  1. Program Code
  2. Program Counter
  3. Stack
  4. Data Section
  5. Heap
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

Process States

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

PCB

A

Info associated with each process.

State, counter, CPU registers, scheduling, memory info, accounting info, I/O status

17
Q

Process Scheduling

A

Scheduler selects among available processes for next execution on CPU.

Long-term - selects processes to be brought into ready queue. Short-term - Selects which program to execute next on CPU

18
Q

Scheduling Queues

A
  1. Job Queue - Set of all processes on system
  2. Ready Queue - set of all processes residing in main memory, ready and waiting to execute
  3. Device Queues - set of processes waiting for an I/O device
19
Q

Context Switch

A

When CPU switches to another process, the system must save the state of the old process and load the saved state for the new process

20
Q

Process Creation

A

Parent process create children processes, which, in turn create other processes, forming a tree of processes. Managed via process id (pid)

21
Q

Process Termination

A

Process executes last statement and asks the operating system to delete it (exit).

22
Q

Interprocess Communication (IPC)

A
  1. Independent process cannot affect or be affected by the execution of another process
  2. Cooperating process can affect or be affected by the execution of another process
23
Q

Two types of IPC

A
  1. Shared Memory - Less overhead
  2. Message Passing - Safer
24
Q

Buffering (Producer-Consumer problem)

A
  1. Zero capacity – 0 messages (no buffering) Sender must wait for receiver (rendezvous)
  2. Bounded capacity – finite length of n messages. Sender must wait if link full
  3. Unbounded capacity – infinite length. Sender never waits
25
Q

Socket

A

An endpoint for communication, a concatenation of the IP address and port number. Ex. 192.168.1.12:1352

26
Q

Heavywight/Lightweight Process

A

Heavyweight - Process with single thread of control

Lightweight - A single thread