Syncronization Flashcards
Multiple computational tastks are executed simutaneously at the same time __.
Concurrent Programming.
A situation where concureent access to shared data and the final outcome depends upon order of execution __.
Race Condition.
A section where the shared data is accessed __.
Critical Section.
A Mechanism that allows the programmer to control the relative order in which operations occuer in different threads or processes __.
Synchronization.
No other process can be executing its critical section while the one of the processes is executing their section __.
Mutual Exclusion.
A code segmant that requests permission to enter the critical section __.
Entry Section.
Once the critical section is done executing, this code segment starts running __.
Exit Section.
public syncronized void insert( Object object) { …. }
Keyword Synctonization Method.
The thread releases the object lock, sets the thread state to Blocked, and places the thread in the wait set for the object.
wait()
A thread is selected from the wait set and is moved to the entry set with a state of Runnable.
notify()
All threads in the wait set and moves all of them to the entry set.
notifyAll()
Integer value that can range over an unrestricted domain __.
Counting Semaphore.
Integer value that can range only between 0 and 1, also known as Mutex Locks __.
Binary Semaphore.