Concurrency Flashcards

1
Q

A program is a _______ collection of instructions

A

passive

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

A program needs a distinct ______ point and _______ point

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

What is an instance of a computer program that is being executed?

A

Process

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

What is the minimum number of threads in a process?

A

1

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

What are the 4 states of a process?

A
  1. Running
  2. Ready
  3. Suspended
  4. Blocked
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

A process is in the _______ state when it is active on the computer.

A

Running

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

A process is in the _______ state when it could run, but isn’t currently.

A

Ready

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

A process is in the _______ state when it is not allowed to run and not allowed to wait.

A

Suspended

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

A process is in the _______ state when it is waiting.

A

Blocked

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

Can a process share virtual memory with another process?

A

No

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

A shell is a process that provides an interface to the _______ functions.

A

Operating System

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

What is known as a distinct path of execution within a process?

A

Thread

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

What’s good about Win32 threads?

A
  1. Low level
  2. Efficient
  3. Customizable
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

What’s bad about Win32 threads?

A
  1. C-style arrays
  2. Too many steps
  3. Windows only
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

What’s wrong with C++ 11 threads?

A

No access to security or stack

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

What’s a race condition?

A

Two signals racing each other to influence the output first

17
Q

What is a deadlock?

A

Two or more competing actions are waiting for the other to finish.

18
Q

What is the oldest type of computer multitasking?

A

Multiprogramming

19
Q

In multiprogramming, processes are switched when a process waits for a _______.

A

Peripheral

20
Q

In time sharing, processes are switched on a _______.

A

Timer

21
Q

Which type of multitasking launched the GUI age?

A

Cooperative Multitasking

22
Q

What is the most recent type of multitasking?

A

Symmetric Multiprocessing

23
Q

In symmetric multiprocessing all dynamic memory is _______

A

Shared