CSC 351 - Chapter 13 Flashcards

1
Q

Concurrency Occurance

A
  • machine instruction level
  • high level language statement level
  • unit level
  • program level
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Physical Concurrency

A
  • multiple threads of control (All Independent)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Logical Concurrency

A
  • design as if there were multiple threads of control (appearance of physical concurrency using one processor)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Thread of Control

A
  • sequence of program points reached as control flows through a program
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Task/Process/Thread

A
  • program unit that can be in concurrent execution with other program units
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Heavyweight Tasks

A
  • execute in its own address space
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Lightweight Tasks

A
  • run it the same address space
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Cooperation

A
  • one task must wait for another task to complete some activity before it can continue executing
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Competition

A
  • two or more tasks must use a resource that cannot be simultaneously used
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Liveness

A
  • unit will eventually complete its execution

- concurrent tasks can easily lose its liveness

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

Deadlock

A
  • when all concurrent tasks lose their liveness
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Semaphore

A
  • data structure that has a counter and a queue for storing task descriptors
  • has two operations: wait and release
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Monitor

A
  • abstract data type for shared data
How well did you know this?
1
Not at all
2
3
4
5
Perfectly