registers shared memory
play

Registers Shared Memory Fail-crash, fail-silent BJRN A. JOHNSSON - PowerPoint PPT Presentation

Registers Shared Memory Fail-crash, fail-silent BJRN A. JOHNSSON Introduction Analogy from multi-CPU computers. Over network: emulation of shared-memory . Benefit: use shared-memory where there really is none. Considered


  1. Registers – Shared Memory Fail-crash, fail-silent BJÖRN A. JOHNSSON

  2. Introduction • Analogy from multi-CPU computers. • Over network: emulation of shared-memory . • Benefit: use shared-memory where there really is none. • Considered easier than message exchanges.

  3. Register Overview • Process starts read operation with ⟨ r , Read ⟩ • Process starts write operation with ⟨ r , Write | v ⟩ • Process completes after reply event from register: – ⟨ r , ReadReturn | v ⟩ – ⟨ r , WriteReturn ⟩ • Processes access registers in sequential manner • Types: (1, 1), (1, N ), ( N , N )

  4. Semantics • Liveness : Every operation eventually completes. • Safety : Every read operation returns the value written by the last write operation.

  5. Concurrency • Serial (or sequential ) exec: one operation after another • Concurrent exec: what happens to def. of “last”? • Three abstractions: safe , regular , and atomic .

  6. Algorithm Overview • (1, N ) Regular Register – Read-One Write-All – Majority Voting Regular Register • (1, N ) Atomic Register – (1, N ) Regular ➞ (1, 1) Atomic ➞ (1, N ) Atomic Register – Read-Impose Write-All – Read-Impose Write-Majority • ( N , N ) Atomic Register – (1, N ) Atomic ➞ ( N , N ) Atomic Register – Read-Impose Write-Consult-All – Read-Impose Write-Consult-Majority

  7. Repetition Distributed-System Models • Fail-stop – crash-stop, perfekt links, perfect failure detector ( P ) • Fail-silent – crash-stop, perfekt links, no failure detector

  8. (1, N ) Regular Register initially ⊥ !

  9. (1, N ) Regular Register “x” also regular

  10. (1, N ) Regular Register Read-One Write-All

  11. (1, N ) Regular Register Read-One Write-All

  12. (1, N ) Regular Register Read-One Write-All

  13. (1, N ) Regular Register Majority Voting Regular Register

  14. (1, N ) Regular Register Majority Voting Regular Register returns pair with greatest time stamp

  15. (1, N ) Atomic Register !

  16. (1, N ) Atomic Register

  17. (1, N ) Atomic Register

  18. (1, N ) Atomic Register (1, N ) Regular ➞ (1, 1) Atomic Register

  19. (1, N ) Atomic Register (1, 1) Atomic ➞ (1, N ) Atomic Register

  20. (1, N ) Atomic Register (1, 1) Atomic ➞ (1, N ) Atomic Register

  21. (1, N ) Atomic Register Read-Impose Write-All ! same for ⟨ onar , Write ⟩ !

  22. (1, N ) Atomic Register Read-Impose Write-All same for ⟨ onar , Read ⟩ !

  23. (1, N ) Atomic Register Read-Impose Write-Majority

  24. (1, N ) Atomic Register Read-Impose Write-Majority

  25. (1, N ) Atomic Register Read-Impose Write-Majority

  26. ( N , N ) Atomic Register ! ?

  27. ( N , N ) Atomic Register

  28. ( N , N ) Atomic Register (1, N ) Atomic ➞ ( N , N ) Atomic Register

  29. ( N , N ) Atomic Register (1, N ) Atomic ➞ ( N , N ) Atomic Register

  30. ( N , N ) Atomic Register Read-Impose Write-Consult-All !

  31. ( N , N ) Atomic Register Read-Impose Write-Consult-All

  32. ( N , N ) Atomic Register Read-Impose Write-Consult-Majority !

  33. ( N , N ) Atomic Register Read-Impose Write-Consult-Majority factors in rank

  34. ( N , N ) Atomic Register Read-Impose Write-Consult-Majority

Download Presentation
Download Policy: The content available on the website is offered to you 'AS IS' for your personal information and use only. It cannot be commercialized, licensed, or distributed on other websites without prior consent from the author. To download a presentation, simply click this link. If you encounter any difficulties during the download process, it's possible that the publisher has removed the file from their server.

Recommend


More recommend