TEXT 26
Parallel & Distributed Class Guest on 8th November 2022 01:55:42 PM
  1. For managing the physical clock, use the berkley's algorithm
  2.  
  3. How can we manage the physical clock?
  4. Use the Berkley's algorithm and Cristina's algorithm
  5.  
  6. For managing the logical clock, use the lamport's algorithm
  7. After the logical clock, vector clock is used
  8.  
  9. In deadlock
  10. When two process try to access one resource at the same time.
  11. Incremental Ti, Ti+1 + Ti+2
  12. Decremental Ti, Ti-1 + Ti-2
  13.  
  14. Resource Deadlock - when the processes are in deadlock due to the resources
  15.  
  16. Time Stamp
  17. TS(P1) > Ts(P2)
  18. P for Process
  19.  
  20. Check for the younger process and kill it
  21.  
  22. Request > Response > Commit
  23.  
  24. Distributed Mutual Exclusion
  25.  
  26. Deadlock Prevention Methods:
  27. Wait & Die, FCFS (On the basis of first come first serve)
  28. Bound & Wait (Block the younger one, and execute the existing one)
  29. Wound-wait
  30.  
  31. CS = Critical Section
  32.  
  33. Circular Deadlock
  34. It can detect using the wait for a graph algorithm.
  35. Note the timestamp based messages, ordering at Coordinator.
  36. This can be prevented by killing any of the process
  37. Its also known as the false deadlock
  38.  
  39. Physically they are separate
  40. Logically they are one
  41.  
  42. Wait for graph is the directed graph, connected through the vertices.

Coding Base is for source code and general debugging text.

Login or Register to edit, delete and keep track of your pastes and more.

Raw Paste

Login or Register to edit or fork this paste. It's free.