Principles of Concurrent and Distributed Programming
Häftad, Engelska, 2005
Av M. Ben-Ari
1 419 kr
Beställningsvara. Skickas inom 7-10 vardagar
Fri frakt för medlemmar vid köp för minst 249 kr.The latest edition of a classic text on concurrency and distributed programming – from a winner of the ACM/SIGCSE Award for Outstanding Contribution to Computer Science Education.
Produktinformation
- Utgivningsdatum2005-12-06
- Mått177 x 232 x 21 mm
- Vikt630 g
- FormatHäftad
- SpråkEngelska
- Antal sidor384
- Upplaga2
- FörlagPearson Education
- ISBN9780321312839
Tillhör följande kategorier
Mordechai (Moti) Ben-Ari is an Associate Professor in the Department of Science Teaching at the Weizmann Institute of Science in Rehovot, Israel. He is the author of texts on Ada, concurrent programming, programming languages, and mathematical logic, as well as Just a Theory: Exploring the Nature of Science. In 2004 he was honored with the ACM/SIGCSE Award for Outstanding Contribution to Computer Science Education.
- Contents Preface xi 1 What is Concurrent Programming? 11.1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11.2 Concurrency as abstract parallelism . . . . . . . . . . . . . . . . 21.3 Multitasking . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41.4 The terminology of concurrency . . . . . . . . . . . . . . . . . 41.5 Multiple computers . . . . . . . . . . . . . . . . . . . . . . . . 51.6 The challenge of concurrent programming . . . . . . . . . . . . 5 2 The Concurrent Programming Abstraction 72.1 The role of abstraction . . . . . . . . . . . . . . . . . . . . . . . 72.2 Concurrent execution as interleaving of atomic statements . . . . 82.3 Justification of the abstraction . . . . . . . . . . . . . . . . . . . 132.4 Arbitrary interleaving . . . . . . . . . . . . . . . . . . . . . . . 172.5 Atomic statements . . . . . . . . . . . . . . . . . . . . . . . . . 192.6 Correctness . . . . . . . . . . . . . . . . . . . . . . . . . . . . 212.7 Fairness . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 232.8 Machine-code instructions . . . . . . . . . . . . . . . . . . . . . 242.9 Volatile and non-atomic variables . . . . . . . . . . . . . . . . . 282.10 The BACI concurrency simulator . . . . . . . . . . . . . . . . . 292.11 Concurrency in Ada . . . . . . . . . . . . . . . . . . . . . . . . 312.12 Concurrency in Java . . . . . . . . . . . . . . . . . . . . . . . . 342.13 Writing concurrent programs in Promela . . . . . . . . . . . . . 362.14 Supplement: the state diagram for the frog puzzle . . . . . . . . 37 3 The Critical Section Problem 453.1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . 453.2 The definition of the problem . . . . . . . . . . . . . . . . . . . 453.3 First attempt . . . . . . . . . . . . . . . . . . . . . . . . . . . . 483.4 Proving correctness with state diagrams . . . . . . . . . . . . . . 493.5 Correctness of the first attempt . . . . . . . . . . . . . . . . . . 533.6 Second attempt . . . . . . . . . . . . . . . . . . . . . . . . . . . 553.7 Third attempt . . . . . . . . . . . . . . . . . . . . . . . . . . . 573.8 Fourth attempt . . . . . . . . . . . . . . . . . . . . . . . . . . . 583.9 Dekker’s algorithm . . . . . . . . . . . . . . . . . . . . . . . . 603.10 Complex atomic statements . . . . . . . . . . . . . . . . . . . . 61 4 Verification of Concurrent Programs 674.1 Logical specification of correctness properties . . . . . . . . . . 684.2 Inductive proofs of invariants . . . . . . . . . . . . . . . . . . . 694.3 Basic concepts of temporal logic . . . . . . . . . . . . . . . . . 724.4 Advanced concepts of temporal logic . . . . . . . . . . . . . . . 754.5 A deductive proof of Dekker’s algorithm . . . . . . . . . . . . . 794.6 Model checking . . . . . . . . . . . . . . . . . . . . . . . . . . 834.7 Spin and the Promela modeling language . . . . . . . . . . . . . 834.8 Correctness specifications in Spin . . . . . . . . . . . . . . . . . 864.9 Choosing a verification technique . . . . . . . . . . . . . . . . . 88 5 Advanced Algorithms for the Critical Section Problem 935.1 The bakery algorithm . . . . . . . . . . . . . . . . . . . . . . . 935.2 The bakery algorithm for N processes . . . . . . . . . . . . . . 955.3 Less restrictive models of concurrency . . . . . . . . . . . . . . 965.4 Fast algorithms . . . . . . . . . . . . . . . . . . . . . . . . . . . 975.5 Implementations in Promela . . . . . . . . . . . . . . . . . . . . 104