Shared Flashcard Set

Details

Operating Systems Chapter 6
Terms from Chapter Six of Operating Systems Concepts by Galvin, Silberschatz, and Gagne
32
Computer Science
Undergraduate 3
02/10/2013

Additional Computer Science Flashcards

 


 

Cards

Term
Race Condition
Definition
A situation where the outcome of the process depends on the order that threads execute.
Term
Process Synchronization
Definition
Making processes behave in a way that eliminates race conditions.
Term
Critical Section Problem
Definition
The problem regarding the fact that there may exist areas of code in threads that alter certain variables in a way that causes unexpected behavior. A solution must address three main components: Mutual Exclusion, Progress, and Bounded Waiting.
Term
Critical Section
Definition
Areas of code where the process is changing variables or tables, and no other process should access these same data.
Term
Mutual Exclusion
Definition
Only one process may be in the critical section at a time.
Term
Progress
Definition
Only processes that still need to execute their critical sections can be involved in the decision as to which process enters the critical section. Cannot be indefinitely postponed.
Term
Bounded Waiting
Definition
A process cannot be kept out of its critical section forever because other processes want to enter theirs.
Term
Entry Section
Definition
The code that requests that the process may enter its critical section.
Term
Exit Section
Definition
The code that shows that the process is leaving its critical section.
Term
Remainder Section
Definition
The code outside the critical section.
Term
Peterson's Solution
Definition
A limited solution to the critical section problem where there is a turn integer, and an array of size two which indicates which processes are ready to enter the critical section. When the process is able to enter the critical section and its the process's turn, it may enter the critical section.
Term
TestAndSet Operation
Definition
An atomic operation where a value is tested and then set.
Term
Swap Operation
Definition
An atomic operation that swaps two words.
Term
Atomic
Definition
A method that cannot be interrupted.
Term
Semaphore
Definition
An atomic variable that is only accessed through wait() and signal().
Term
Semaphore Wait/Acquire Operation
Definition
Waits until s is greater than zero and decrements it.
Term
Semaphore Signal/Release Operation
Definition
Increments s.
Term
Counting Semaphore
Definition
A semaphore that can range over some unspecified domain.
Term
Binary Semaphore
Definition
A semaphore that can only be zero or one.
Term
Busy Waiting
Definition
Waiting that uses a lot of CPU time by continuously checking a condition.
Term
Spinlock
Definition
Another name for busy waiting.
Term
Deadlock
Definition
When two or more processes are indefinitely blocked because they are both waiting on something to happen that only the other blocked process can do.
Term
Starvation
Definition
Indefinite blocking due to continuous waiting in the semaphore structure.
Term
Priority Inversion
Definition
A situation in which the values of priority are suddenly switched, and lower priority processes execute before higher priority processes.
Term
Priority Inheritance
Definition
A solution to priority inversion where if a lower priority process owns a turnstile that a high priority process is blocked on, the lower priority process will temporarily gain the higher priority.
Term
Bounded Buffer Problem
Definition
Ensuring that a producer with not put an item in a full buffer and a consumer will not take an item from an empty buffer.
Term
Readers-Writers Problem
Definition
Ensuring that writers have exclusive access to whatever they are writing to, in order to prevent worldwide chaos and mayhem.
Term
Dining Philosophers Problem
Definition
The problem of philosophers not being capable of eating without turning it into a though experiment. Also chopsticks.
Term
Monitor
Definition
A data structure where a procedure in the monitor can only access the local variables and its formal parameters. And the local variables can only be accessed by the local procedures.
Term
Condition Variable
Definition
A queue of threads, associated with a monitor, on which a thread may wait for some condition to come true.
Term
Condition Variable Wait Operation
Definition
The operation that waits for a condition to come true by adding it too a pool, and blocking.
Term
Condition Variable Signal Operation
Definition
The operation that removes a thread from the pool and sets it to occupy the monitor while running.
Supporting users have an ad free experience!