Programs, Processes, Processors and OS Flashcards

1
Q

Processor

A

hardware device that executes instructions

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

Program

A

instruction sequence defining potential execution path; passive description; stored on disk/secondary memory

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

Process

A

active system entity executing associate program; program in execution on proccessor; resides in main memory

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

Context Switch

A

execution jumps to another part of memory

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

A thread’s context consists of (at its minimum)

A
  1. Program Counter

2. Stack Pointer

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

Context-Switching Sequence

A
  1. De-schedule currently running thread(save pc and sp registers of current thread)
  2. scheduler selects ‘best’ ready thread to run next
  3. resume newly-selected thread
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Program counter

A

points at instruction to be executed next in memory

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

Stack Pointer

A

Address at the top of the thread’s call stack.

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

Parallelism

A

Multiple processes executing simultaneously, all executing at a given instant.

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

Concurrency

A

Multiple processes but less than all of them (

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

“Safe” concurrency

A
  1. No shared resources

2. No modification of data (read-only data)

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

Limit to Performance: Amdahl’s Law

A

“Program speedup by adding more processors is limited by the serial part of the program”;
Theoretical maximum speedup is x20

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

Unix-Style Processes

A

unix processes combine a thread of execution with a ‘private virtual address space’

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

Threads

A

the lightweight locus of computing abstraction; share a common address space

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

User Threads

A
cheap context switch;
no OS support required
kernel only knows about processes;
user-level scheduler;
user threads in the same process can't execute on separate CPUs - OS is not aware of them
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

Kernel Threads

A

supported by OS; scheduled by OS Scheduler; threads are preemptable by the OS