Quiz 3 Flashcards

1
Q

A process can create multiple ____________________.

A
  • Threads
  • Operating systems
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Multiple threads are quasi-parallel when there are ___________ processors than threads in the computer system.

A

Less

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

True or False:

A process may have multiple threads of control.

A

True

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

Multiple threads from ____________ may share address space.

A

the same process

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

Compared with processes, threads are ________________.

A

light-weight

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

True or False:

Both processes and threads can take advantage of multiple CPUs.

A

True

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

Each process has its own_______________________.

A
  • Process number
  • Global variables
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

A word processor needs to create multiple ___________________ to handle different activities such as user interactivity and periodical saves.

A

Threads

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

Each ___________ has its own stack.

A

thread

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

Each ____________ has its own program counter.

A

process

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

A thread is in ______________ state when it is waiting for I/O to complete.

A

blocked

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

When a thread is waiting for its turn to use CPU, the thread is in _________ state.

A

ready

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

When the time slice is used up by a thread, the thread goes to _____________ state.

A

ready

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

Race conditions may occur when _________________________.

A

multiple processes share data

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

A necessary condition for race conditions is _______________________.

A

at least one process needs to write

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

The program part that needs to access the shared data by multiple processes is called the _______________.

A

critical section

17
Q

To address race conditions, __________________ is needed.

A

mutual exclusion

18
Q

____________ describes a situation where two or more threads are blocked forever, waiting for each other.