Professional Documents
Culture Documents
Prevencin
Evasin
Deteccin y recuperacin
La triste realidad. . .
2013-02-20 2013-02-25
Prevencin
Evasin
ndice
Prevencin
Evasin
Deteccin y recuperacin
La triste realidad. . .
Deteccin y recuperacin
La triste realidad. . .
Prevencin
Evasin
Deteccin y recuperacin
La triste realidad. . .
Prevencin
Evasin
Deteccin y recuperacin
La triste realidad. . .
Prevencin
Evasin
Deteccin y recuperacin
La triste realidad. . .
El cruce de un semforo
Cuando dos personas llegan a un crucero sin semforo,
quin tiene el paso?
Reglamento de trnsito: El conductor que viene ms por
la derecha
Y qu procede cuando cuatro conductores llegan a la
vez?
Legalmente, los cuatro deben detenerse y nunca ms
avanzar
Uno podra echarse en reversa, otro podra ignorar la ley y
pasar de todos modos, pero es porque los conductores
humanos tienen iniciativa!
Prevencin
Evasin
Deteccin y recuperacin
La triste realidad. . .
El cruce de un semforo
Cuando dos personas llegan a un crucero sin semforo,
quin tiene el paso?
Reglamento de trnsito: El conductor que viene ms por
la derecha
Y qu procede cuando cuatro conductores llegan a la
vez?
Legalmente, los cuatro deben detenerse y nunca ms
avanzar
Uno podra echarse en reversa, otro podra ignorar la ley y
pasar de todos modos, pero es porque los conductores
humanos tienen iniciativa!
Prevencin
Evasin
Deteccin y recuperacin
La triste realidad. . .
El cruce de un semforo
Cuando dos personas llegan a un crucero sin semforo,
quin tiene el paso?
Reglamento de trnsito: El conductor que viene ms por
la derecha
Y qu procede cuando cuatro conductores llegan a la
vez?
Legalmente, los cuatro deben detenerse y nunca ms
avanzar
Uno podra echarse en reversa, otro podra ignorar la ley y
pasar de todos modos, pero es porque los conductores
humanos tienen iniciativa!
Prevencin
Evasin
Deteccin y recuperacin
La triste realidad. . .
Prevencin
Evasin
Deteccin y recuperacin
La triste realidad. . .
Prevencin
Evasin
Deteccin y recuperacin
La triste realidad. . .
4
5
Prevencin
Evasin
Deteccin y recuperacin
La triste realidad. . .
6
7
8
9
Prevencin
Evasin
Deteccin y recuperacin
La triste realidad. . .
Prevencin
Evasin
Deteccin y recuperacin
La triste realidad. . .
Prevencin
Evasin
Deteccin y recuperacin
La triste realidad. . .
Prevencin
Evasin
Deteccin y recuperacin
La triste realidad. . .
Prevencin
Evasin
Deteccin y recuperacin
La triste realidad. . .
Prevencin
Evasin
ndice
Prevencin
Evasin
Deteccin y recuperacin
La triste realidad. . .
Deteccin y recuperacin
La triste realidad. . .
Prevencin
Evasin
Deteccin y recuperacin
La triste realidad. . .
Caracterstica bsica
Prevencin
Evasin
Deteccin y recuperacin
La triste realidad. . .
Serializacin
Prevencin
Evasin
Deteccin y recuperacin
La triste realidad. . .
4
5
Prevencin
Evasin
Deteccin y recuperacin
La triste realidad. . .
8
9
10
11
12
13
14
Prevencin
Evasin
Deteccin y recuperacin
La triste realidad. . .
Analizando a la serializacin
Prevencin
Evasin
Deteccin y recuperacin
La triste realidad. . .
Prevencin
Evasin
Deteccin y recuperacin
La triste realidad. . .
Prevencin
Evasin
Deteccin y recuperacin
La triste realidad. . .
Prevencin
Evasin
Deteccin y recuperacin
La triste realidad. . .
Prevencin
Evasin
Deteccin y recuperacin
La triste realidad. . .
. . . Pero?
Es un ordenamiento demasiado estricto para muchas
situaciones del mundo real
Lleva a los procesos a acaparar recursos de baja prioridad
Conduce a inanicin
Prevencin
Evasin
Deteccin y recuperacin
La triste realidad. . .
Prevencin
Evasin
Deteccin y recuperacin
La triste realidad. . .
Prevencin
Evasin
ndice
Prevencin
Evasin
Deteccin y recuperacin
La triste realidad. . .
Deteccin y recuperacin
La triste realidad. . .
Prevencin
Evasin
Deteccin y recuperacin
La triste realidad. . .
Caracterstica bsica
Prevencin
Evasin
Deteccin y recuperacin
La triste realidad. . .
Prevencin
Evasin
Deteccin y recuperacin
La triste realidad. . .
Prevencin
Evasin
Deteccin y recuperacin
La triste realidad. . .
reas de riesgo
Mientras avancemos por el rea segura no hay riesgo de
bloqueos
Sistemas uniprocesador, slo avance vertical/horizontal
Sistemas multiprocesador, avance diagonal
Prevencin
Evasin
Deteccin y recuperacin
La triste realidad. . .
Prevencin
Evasin
Deteccin y recuperacin
La triste realidad. . .
Prevencin
Evasin
Deteccin y recuperacin
La triste realidad. . .
Prevencin
Evasin
Deteccin y recuperacin
La triste realidad. . .
Prevencin
Evasin
Deteccin y recuperacin
La triste realidad. . .
Prevencin
Evasin
Deteccin y recuperacin
La triste realidad. . .
Estados
Prevencin
Evasin
Deteccin y recuperacin
La triste realidad. . .
Prevencin
Evasin
Deteccin y recuperacin
La triste realidad. . .
Prevencin
Evasin
Deteccin y recuperacin
La triste realidad. . .
Prevencin
Evasin
Deteccin y recuperacin
La triste realidad. . .
Ejemplo
Asumiendo que tenemos slo una clase de recursos y nos
quedan dos instancias libres:
Proceso
A
B
C
1
2
3
4
Asignado
4
4
2
Reclamando
6
11
7
Prevencin
Evasin
Deteccin y recuperacin
La triste realidad. . .
Ejemplo 2
Slo una clase de recursos, 2 instancias libres
Proceso
A
B
C
1
2
Asignado
4
4
2
Reclamado
6
11
9
Prevencin
Evasin
Deteccin y recuperacin
La triste realidad. . .
t1 :
t2 :
t3 :
t4 :
P1
P2
P3
P1
Prevencin
Evasin
Deteccin y recuperacin
La triste realidad. . .
Prevencin
Evasin
Deteccin y recuperacin
La triste realidad. . .
Prevencin
Evasin
Deteccin y recuperacin
La triste realidad. . .
Prevencin
Evasin
Deteccin y recuperacin
La triste realidad. . .
1
2
3
4
5
6
7
8
9
10
Prevencin
Evasin
Deteccin y recuperacin
La triste realidad. . .
Precisiones
Prevencin
Evasin
Deteccin y recuperacin
La triste realidad. . .
Precisiones
Prevencin
Evasin
ndice
Prevencin
Evasin
Deteccin y recuperacin
La triste realidad. . .
Deteccin y recuperacin
La triste realidad. . .
Prevencin
Evasin
Deteccin y recuperacin
La triste realidad. . .
Caracterstica bsica
Prevencin
Evasin
Deteccin y recuperacin
La triste realidad. . .
Funcionamiento bsico
Prevencin
Evasin
Deteccin y recuperacin
La triste realidad. . .
Prevencin
Evasin
Deteccin y recuperacin
La triste realidad. . .
Estrategia general
Tenemos la representacin completa de los recursos y
procesos en el sistema
Buscamos reducir la grfica, retirando los elementos que
no aportan informacin relevante:
1
Prevencin
Evasin
Deteccin y recuperacin
La triste realidad. . .
Ejemplo 1
Prevencin
Evasin
Deteccin y recuperacin
La triste realidad. . .
Resolviendo el ejemplo 1
Prevencin
Evasin
Deteccin y recuperacin
La triste realidad. . .
Ejemplo 2
Prevencin
Evasin
Deteccin y recuperacin
Ejemplo 2
La triste realidad. . .
Prevencin
Evasin
Deteccin y recuperacin
Ejemplo 2
La triste realidad. . .
Prevencin
Evasin
Deteccin y recuperacin
Ejemplo 2
La triste realidad. . .
Prevencin
Evasin
Deteccin y recuperacin
La triste realidad. . .
Prevencin
Evasin
Deteccin y recuperacin
La triste realidad. . .
Prevencin
Evasin
Deteccin y recuperacin
La triste realidad. . .
Prevencin
Evasin
Deteccin y recuperacin
La triste realidad. . .
Prevencin
Evasin
Deteccin y recuperacin
La triste realidad. . .
Prevencin
Evasin
Deteccin y recuperacin
La triste realidad. . .
Prevencin
Evasin
Deteccin y recuperacin
La triste realidad. . .
Prevencin
Evasin
Deteccin y recuperacin
La triste realidad. . .
Prevencin
Evasin
Deteccin y recuperacin
La triste realidad. . .
Prevencin
Evasin
ndice
Prevencin
Evasin
Deteccin y recuperacin
La triste realidad. . .
Deteccin y recuperacin
La triste realidad. . .
Prevencin
Evasin
Deteccin y recuperacin
La triste realidad. . .
Frustraciones. . .
Prevencin
Evasin
Deteccin y recuperacin
./ltxpng/deadlocks_conserv_lib.png
La triste realidad. . .
Prevencin
Evasin
Deteccin y recuperacin
La triste realidad. . .
Prevencin
Evasin
Deteccin y recuperacin
La triste realidad. . .
Prevencin
Evasin
Deteccin y recuperacin
La triste realidad. . .
Cuestin de compromisos
Prevencin
Evasin
Deteccin y recuperacin
La triste realidad. . .
Prevencin
Evasin
Deteccin y recuperacin
La triste realidad. . .
Prevencin
Evasin
Deteccin y recuperacin
La triste realidad. . .
Consideraciones finales
Qu es un recurso?
No slo cintas, impresoras, tarjetas de audio. . .
Tambin segmentos de memoria, tiempo de
procesamiento!
Y las estructuras lgicas creadas por el SO? Archivos,
semforos, monitores, . . .