Chapter 1 Flashcards

(56 cards)

1
Q

What is OS basic

A

A large program

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

What does OS manage

A

Computer hardware resources, decides between conflicting requests for efficient and fair resource use

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

What kind of program is OS

A

Control

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

What is relationship of OS between user of computer and computer hardware

A

Intermediary

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

Why does OS control execution of programs?

A

To prevent errors and improper use of the computer

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

What does CPU repeat?

A

Cycle of fetching and executing low level machine instructions

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

OS goals for user

A

Execute user programs and make it easy and convenient

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

OS goals system/Hardware

A

Manage resources and use computer hardware efficiently

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

OS Abstraction

A

The act of removing unimportant details or attributes of objects in order to construct more general and less complex objects

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

OS Virtualization

A

The act of creating the illusion of having one or more objects with more desirable characteristics than the real object.

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

How does OS use abstraction?

A

Multiple operations at one level are combined into a single operation at a higher level, making it easier to use

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

How does OS use virtualization?

A

Create virtual CPUs, memory, I/O devices

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

Batch Processing

A

Method of running software programs(jobs) in batches automatically with no user interaction required

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

4 Major OS components

A
  1. Processes and Threads
  2. CPU Scheduling
  3. I/O Management
  4. Memory Management
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

Multiprogramming

A

Technique that keeps several programs active in memory and switches execution among the different programs to maximize the use of the CPU and other resources

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

Multiprogramming example

A

When a program enters IO phase then another program can utilize the CPU

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

Time-sharing (multi-tasking)

A

Extension of multiprogramming where the CPU switches jobs so frequently that users can interact with each job while it is running

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

What does time-sharing create

A

interactive computing

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

Time-sharing employs concept of

A

Virtualization by creating illusion of having a separate virtual CPU for each computation

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

Can abstraction be used without virtualization

A

Yes

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

Can virtualization be used without abstraction

A

No

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

Can abstraction and virtualization be used together

A

Yes

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

Process

A

Program in execution

24
Q

Multitasking gives the _ of _ on one cpu

A

Illusion of parallel processing

25
The OS creates and deletes
Processes and threads
26
The OS suspends and resumes
Processes and threads
27
The OS schedules
Processes and threads
28
The OS provides mechanisms for 3
Process Synchronization Interprocess communication Deadlock Handling
29
I/O management synchronous
Control returns to the user program only upon I/O completion Wait loop until next interrupt
30
I/O management asynchronous
Control returns to user program without waiting for I/O completion Does this through signal or callback
31
OS 5 design approaches
Simple, Layered, Microkernels, Modular, Hybrid
32
Simple Structure
No defined layers or modules, starts small and grows in complexity over time
33
Monolithic operating system
Design where entire operating system is implemented as a single large program running in a single address space (kernel mode)
34
Layered approach
The OS is divided into a series of hierarchical layers, each building on the lower layers, with each layer interacting with only the one directly beneath it
35
Single Layered
Enormous amount of functionality crammed into the kernel, no encapsulation
36
Full layered approach
The OS is divided into a number of layers, each built on top of lower layers
37
Layered approach advantage
Layers can be debugged and replaced independently without bothering the other layers above or below
38
Layered approach cons
Appropriately defining the various layers More overhead
39
Microkernels
Reduces the size of the kernel to include only essential OS functions
40
Microkernels idea
Minimize the kernel by moving as much functionality as possible from the kernel into user space
41
Microkernel pros
Easier to extend, more portable, and more reliable
42
Microkernel cons
Performance overhead due to frequent communication between user space and kernel, Not always realistic, some functions must remain in kernel space
43
Modular
A kernel design in which the OS is built from separate modules all within kernel
44
Kernel
The minimal set of functions necessary to manage the system resources safely and efficiently.
45
Privileged Instruction
Performs critical operations that access I/O devices and the CPU's status and control registers
46
Who is allowed to use privileged instructions
Only OS kernel
47
Kernel Mode
CPU state where both privileged and nonprivileged instructions may be used
48
User Mode
CPU state where only nonprivileged instructions may be used
49
Any attempt to use privileged instruction in user mode automatically
transfers control to kernel mode
50
OS Shell
Command interpreter that accepts and interprets textual commands issued by the user via a keyboard
51
System Call
A request from an application for an OS service
52
Supervisor call (kernel call)
privileged instruction that automatically transfers execution control to a well defined location in the OS kernel
53
Interrupt
An event that diverts the current execution of a program to a predefined location in the kernel in order to respond to an event
54
Two popular uses of interrupt
Signal to OS completion of IO event Implement time sharing by periodically switching the PCU among multiple concurrent computations
55
Trap
Interrupt triggered by currently executing instruction
56