Syncronization Flashcards

1
Q

Multiple computational tastks are executed simutaneously at the same time __.

A

Concurrent Programming.

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

A situation where concureent access to shared data and the final outcome depends upon order of execution __.

A

Race Condition.

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

A section where the shared data is accessed __.

A

Critical Section.

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

A Mechanism that allows the programmer to control the relative order in which operations occuer in different threads or processes __.

A

Synchronization.

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

No other process can be executing its critical section while the one of the processes is executing their section __.

A

Mutual Exclusion.

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

A code segmant that requests permission to enter the critical section __.

A

Entry Section.

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

Once the critical section is done executing, this code segment starts running __.

A

Exit Section.

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

public syncronized void insert( Object object) { …. }

A

Keyword Synctonization Method.

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

The thread releases the object lock, sets the thread state to Blocked, and places the thread in the wait set for the object.

A

wait()

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

A thread is selected from the wait set and is moved to the entry set with a state of Runnable.

A

notify()

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

All threads in the wait set and moves all of them to the entry set.

A

notifyAll()

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

Integer value that can range over an unrestricted domain __.

A

Counting Semaphore.

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

Integer value that can range only between 0 and 1, also known as Mutex Locks __.

A

Binary Semaphore.

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