Midterm Flashcards

(111 cards)

1
Q

What does the operating system do?

A

The OS abstracts the internal computer architecture and the OS manages and transparently handles all of the HW resources.

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

‘Top Down’ view is associated with?

A

Abstraction (provides a clean and abstract set of resources

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

‘Bottom-up’ view is associated with?

A

Management (Mangages HW resources)

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

What does the Disk Driver do?

A

Deals with the hardware and provides an interface to read and write disk blocks

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

The OS interacts with the device via

A

Device Driver

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

What is multiplexing

A

Sharing resources in two different ways: in time and in space

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

What was Generation 0 called

A

Mechanical Era

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

What’s Generation 1

A

(1945-55) which consisted of the Electromechanical Relays & Vacuum Tubes Era

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

What’s Generation 2

A

(1955-65) which consisted of the Transistors & Batch Systems Era

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

What’s Generation 3

A

(1965-1980s) which brought solid-state IC revolution and Multiprogramming

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

What’s Generation 4

A

(1980-1990) which brought “Personal” Computers.

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

What’s Generation 5

A

(1990-Present) which brought Mobile Computers

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

Which generation was the ENIAC created

A

Generation 1

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

Where was the transistor invented?

A

AT&T’s Bell Labs.(Generation 2)

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

Leading to the first class of general-purpose computers known as

A

Mainframe

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

Mainframe?

A

Is a computer system that is primarily used by large organizations or institutions for bulk data processing and large-scale transactions

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

What was the batch system analogous to

A

Pipelining

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

Job input (Generation 2)

A

Each user’s “job” was specified by a set of input punch cards

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

What did the punch cards represent

A

The cards represented the user’s ‘program’

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

With the 360 what did it bring fourth

A

Multiprogramming,Dynamic Address Translation (DAT),Out-of-Order Instruction Execution

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

Time-sharing

A

allows the mainframe to be ‘multiplexed’ so that multiple users could issue commands interactively while the system mostly sat idle

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

The principal components of any computer system consist of

A

CPU, cache memories + MMU, Memory Subsystem (aka primary storage, I/O Devices, long term secondary storage, bus structure

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

I/O is composed of?

A

a physical device and a device controller

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

bus structure is?

A

connect all the computer’s subsystems.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
25
What's the brain of the Comptuer
CPU
26
What does the CPU do
F-D-X Fetch Decode Xecute in cycles
27
Two predominant types of instruction encoding and sets?
RISC & CISC
28
The Program Counter (PC) is?
A register, which points to the next instruction to be fetched
29
Stack Pointer (SP) ?
points to the top-of-stack
30
Frame Pointer (FP)
An additional register dedicated for accessing elements within the current frame. Works with Stack pointer
31
Register file (RF)
A set of temporary working (main) registers
32
RF + SP + PC = ??
Execution Context
33
Program Status Word (PSW)
This register contains the condition code bits, which are set by comparison instructions
34
Execution Context
the internal data by which the OS is able to supervise and control the process
35
Spooling?
Whenever a running job finished, the operating system could load a new job from the disk into the now-empty partition and run it is called what?
36
Has unrestricted access to all computing resources
Kernal Mode
37
Has very restricted access to computing resources
User Mode
38
SMT(Simultaneous Multithreating/Hyperthreading does parrelism
No actually it just looks like it
39
TRAP instructions are
The operating system calls functions
40
Voluntary switches between User and Kernal modes occur...
often occur as a result of executing a special instruction called a 'TRAP' instruction.
41
Involuntary changes in operating mode occur as a result of either
synchronous (aka exceptions) or asynchronous (aka Interrupts) events,
42
What type event is the I/0 interupt
Async
43
the time it takes the 'head' to slide towards the track containing the data
Seek Time
44
The time for the 'head' to find its way to the beginning of the desired sector
Latency
45
The amount of digital data that's moved from one place to another in a given time
Transfer Rate
46
This counts the time from when the data is requested until its fully 'retrieved'
Access Time
47
this is much FASTER overall access times and more energy-efficient than a HDD
Solid State Drive
48
This is component that the CPU actually interacts with
Device Controller
49
How does the Device controller interact with the CPU
As interface between the computer system (operating system) and I/O devices
50
Like a 'communication system' that transfers data between system components and subsystems inside a computer
Bus
51
address bus + data bus + control bus = ??
computer system
52
is a program in execution?
Process
53
Allows processes to communicate or 'sync up'
Interprocess Communication (IPC)
54
this determines the method of how files can be structured, represented, stored and retrieved UI
File System
55
Makes up Terminal
I/O + Shell
56
How applications ask the OS to do things in its behalf
A 'system-call' Interface (I/F)
57
ALL memory segments/chunks/regions which the process 'owns' and that it can read/write from/to
Address space
58
(interrupts and halts) the current proces
Preempts
59
A finite amount of time in which it is allowed to run
time quantum
60
The part of the OS responsible for making these decisions
OS scheduler
61
The OS maintains a list of all 'ready processes' in a special data structure
Process Table
62
INIT and has a PID of
1
63
Is the 'view' that each process has about its address space
Virtual memory
64
an abstraction of data and/or devices, as well as its representation and device-dependent details
File
65
UID
User ID
66
UID is
a person who has access to a system
67
GID stands for
Group ID
68
GID is
A collection of files that are associated with each other
69
PPID stands for
Parent Process ID
70
What does a process always have
PPID and PID
71
PID is
Process ID
72
$ cat < myfile.txt | sort > myfile_sortex.txt is an example of
command pipeline
73
consists of a series of 'wrapper functions' (written in C) that contain architecture-dependent assembly
System-call interface (SCI).
74
This kernel runs the entire OS as a single program in kernel mode in a singe address space
monolithic kernel.
75
this kernel attempts to place as little as possible in the kernel
microkernel
76
The microkernel
pushes as much as it can out into 'userland'.
77
The layer kernel
breaks up the operating system into different layers and retains much more control on the system
78
This model distinguishes between two types of process client processes and server processes.
Client-server Model
79
This kernel allocates direct H/W resources to programs. Manages allocated resources to prevent conflicts
Exokernel
80
What does fork() do
Create a new process
81
When a child process terminates normally it becomes a
Zombie
82
single sequential flow of activities being executed in a processis called?
Thread
83
switching from one program to another
Context Switch
84
What is N:1 Implementation
Single kernel thread is available to work on behalf of each user process
85
What is 1:1 Implementation
One user-space thread assigned Kernel resource
86
What is N:M Implementation
Each kernel resource can be associated with multiple user-level threads
87
Scheduler Activations is an example of
is an example of "many-to-many" N:M (Hybrid) kernel-mapping implementation.
88
Scheduler Activation is
provide kernel-level thread functionality with user-level thread flexibility and performance
89
The signal that is given to the thread library From kernel-space to user-space
Upcall
90
The arrival of a message causes the system to create a new thread to handle the message is called
Pop Up Thread
91
create_global()
Creates a global variable that will be stored by way of a 'pointer' in the heap
92
set_global()
To set its value.
93
thread-local globals
'global' variables whose 'scope' is limited to the thread.
94
read_global()
To obtain the pointer of the global var
95
multiple invocations of the procedure can safely be carried out is this type of function
Reentrant
96
when only ONE line of execution can be within the procedure is this type of function
Non-reentrant
97
A situation that can occur when a low-priority task is holding a resource such as a semaphore for which a higher-priority task is waiting
priority inversion problem
98
'integer variable' to count the number of pending 'wake-ups' for future use
semaphore
99
a synchronization mechanism that has two states 'locked' (1) or 'unlocked' (0)
mutex
100
This method of interprocess communication uses two primitives, send and receive
Message Passing
101
A block at the end of a phase to make all processes wait until all processes are done
Barrier
102
This type of resource can be ‘forcibly’ taken away from the process with no ill effects
Preemptible
103
This type of resource CANNOT be taken away safely w/o causing some potential failure.
Non-preemptible
104
This is when no process can can operate due to a shared resource not being available
Deadlock
105
Conditions for Resource Deadlock
1. Mutal Exclusion 2. Hold-and-Wait 3. No-preemption 4. Circular Wait Condition
106
Do all four conditions for deadlock need to be present for a deadlock to occur
If one item is absent, NO resource deadlock is possible.
107
What algorithm just tells you to ignore the problem
The Ostrich Algorithm
108
What ways can the OS recover after the detection of a deadlock
1. Preemption 2. Recovery by voluntarily being ‘nice’ 3. Recovery through ‘Rollback’ 4. Process Killing
109
What is 'Rollback'
‘checkpoint’ mechanism for processes which writes information about a process on a file so that it can be restarted again
110
When to Look for Deadlocks?
Keep an ‘eye’ on CPU utilization and check when it falls below a certain threshold.
111