Mapa mental
Concurrency control
Contenido del mapa
Concurrency control
Mutual Excusion
- Race condition
- Multiple processes or threads read and write data items
- The final result of a thread/process depend on the order of the processes.
- Ensure that simultaneous updates to the same part of the memory cannot occur
- Critical sections
- Only one process at the time is allowed to access data
- Implementations?
- Software
- Algotithms
- Dekker's
- Peterson's
- Lamport's
- Szymanski's
- Taubenfeld's black-white bakery
- Algotithms
- Hardware
- Uniprocessor
- Disable interrupt
- Making it non-preemptive
- Cons?
- it's non preemptive and cannot respond to interrupts
- Slow processes can lock up the processor for a long time
- Disable interrupt
- Multi/uni-processor
- Busy-waiting
- Shared memory
- Atomic test and set
- Gets a value that indicates if the process is occupied
- if it isnt
- Set the value idecating that it's occupied
- if it isnt
- Gets a value that indicates if the process is occupied
- Compare and swap (CAS)
- Busy-waiting
- Uniprocessor
- Software
- Critical sections
- Definitions
- Only one program at a time can riside reside inside a critical section
- A section of code within a process that requires access to shared resources and that must not be executed while another process is in a corresponding section of code.
- Definitions
- Race condition
Deadlock
- A situation in which two or more processes are unable to proceed because each is waiting for one of the others to do something
- example?
- 2 processes waiting for a message from each other
Starvation
- A situation in which a runnable process is overlooked indefinetly by the scheduler; although it is able to proceed, it is never chosen.
- Example?
- A low priority process resides in a queue which is promoting altering higher priority processes rendering no process time for the lower priority process
Información
- Descripción
- Mapa Mental sobre Concurrency control, creado por Wictor Kanerva el 01/11/2014.
- Creado por
- Wictor Kanerva
- Visitas
- 8
- Valoración