Principles of Concurrent and Distributed Programming

Paperback Engels 2005 9780321312839
Verwachte levertijd ongeveer 9 werkdagen

Samenvatting

Final Cover Copy – Ben-Ari

 

Principles of Concurrent and

Distributed Programming

2nd Edition

 

M. Ben-Ari

 

The latest edition of a classic text from a winner of the ACM/SIGCSE

Award for Outstanding Contribution to Computer Science Education.

         

Software today is inherently concurrent or distributed – from event-based GUI designs to operating and real-time systems to Internet applications. The new edition of this classic introduction to concurrency has been completely revised in view of the growing importance of concurrency

constructs embedded in programming languages and of formal methods

such as model checking that are widely used in industry.

 

The 2nd edition:

 

Ø     Focuses on algorithmic principles rather than language syntax;

Ø     Emphasizes the use of the Spin model checker for modeling concurrent systems and verifying program correctness;

Ø     Explains the implementation of concurrency in the Java and Ada languages.

Ø     Facilitates lab work with software tools for learning concurrent and distributed programming.

 

Check out the companion website for the book at www.pearson.co.uk/ben-ari  to find additional resources for both students and instructors, including source code in various languages for the programs in the book, answers to the exercises, and slides for all diagrams, algorithms and programs.

 

About the Author

 

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.

 

Specificaties

ISBN13:9780321312839
Taal:Engels
Bindwijze:Paperback

Lezersrecensies

Wees de eerste die een lezersrecensie schrijft!

Inhoudsopgave

<p>Contents</p> <p>&nbsp;</p> <p>Preface xi</p> <p>&nbsp;</p> <p>1 What is Concurrent Programming? 1</p> <p>1.1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1</p> <p>1.2 Concurrency as abstract parallelism . . . . . . . . . . . . . . . . 2</p> <p>1.3 Multitasking . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4</p> <p>1.4 The terminology of concurrency . . . . . . . . . . . . . . . . . 4</p> <p>1.5 Multiple computers . . . . . . . . . . . . . . . . . . . . . . . . 5</p> <p>1.6 The challenge of concurrent programming . . . . . . . . . . . . 5</p> <p>&nbsp;</p> <p>2 The Concurrent Programming Abstraction 7</p> <p>2.1 The role of abstraction . . . . . . . . . . . . . . . . . . . . . . . 7</p> <p>2.2 Concurrent execution as interleaving of atomic statements . . . . 8</p> <p>2.3 Justification of the abstraction . . . . . . . . . . . . . . . . . . . 13</p> <p>2.4 Arbitrary interleaving . . . . . . . . . . . . . . . . . . . . . . . 17</p> <p>2.5 Atomic statements . . . . . . . . . . . . . . . . . . . . . . . . . 19</p> <p>2.6 Correctness . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21</p> <p>2.7 Fairness . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23</p> <p>2.8 Machine-code instructions . . . . . . . . . . . . . . . . . . . . . 24</p> <p>2.9 Volatile and non-atomic variables . . . . . . . . . . . . . . . . . 28</p> <p>2.10 The BACI concurrency simulator . . . . . . . . . . . . . . . . . 29</p> <p>2.11 Concurrency in Ada . . . . . . . . . . . . . . . . . . . . . . . . 31</p> <p>2.12 Concurrency in Java . . . . . . . . . . . . . . . . . . . . . . . . 34</p> <p>2.13 Writing concurrent programs in Promela . . . . . . . . . . . . . 36</p> <p>2.14 Supplement: the state diagram for the frog puzzle . . . . . . . . 37</p> <p>&nbsp;</p> <p>3 The Critical Section Problem 45</p> <p>3.1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . 45</p> <p>3.2 The definition of the problem . . . . . . . . . . . . . . . . . . . 45</p> <p>3.3 First attempt . . . . . . . . . . . . . . . . . . . . . . . . . . . . 48</p> <p>3.4 Proving correctness with state diagrams . . . . . . . . . . . . . . 49</p> <p>3.5 Correctness of the first attempt . . . . . . . . . . . . . . . . . . 53</p> <p>3.6 Second attempt . . . . . . . . . . . . . . . . . . . . . . . . . . . 55</p> <p>3.7 Third attempt . . . . . . . . . . . . . . . . . . . . . . . . . . . 57</p> <p>3.8 Fourth attempt . . . . . . . . . . . . . . . . . . . . . . . . . . . 58</p> <p>3.9 Dekker’s algorithm . . . . . . . . . . . . . . . . . . . . . . . . 60</p> <p>3.10 Complex atomic statements . . . . . . . . . . . . . . . . . . . . 61</p> <p>&nbsp;</p> <p>4 Verification of Concurrent Programs 67</p> <p>4.1 Logical specification of correctness properties . . . . . . . . . . 68</p> <p>4.2 Inductive proofs of invariants . . . . . . . . . . . . . . . . . . . 69</p> <p>4.3 Basic concepts of temporal logic . . . . . . . . . . . . . . . . . 72</p> <p>4.4 Advanced concepts of temporal logic . . . . . . . . . . . . . . . 75</p> <p>4.5 A deductive proof of Dekker’s algorithm . . . . . . . . . . . . . 79</p> <p>4.6 Model checking . . . . . . . . . . . . . . . . . . . . . . . . . . 83</p> <p>4.7 Spin and the Promela modeling language . . . . . . . . . . . . . 83</p> <p>4.8 Correctness specifications in Spin . . . . . . . . . . . . . . . . . 86</p> <p>4.9 Choosing a verification technique . . . . . . . . . . . . . . . . . 88</p> <p>&nbsp;</p> <p>5 Advanced Algorithms for the Critical Section Problem 93</p> <p>5.1 The bakery algorithm . . . . . . . . . . . . . . . . . . . . . . . 93</p> <p>5.2 The bakery algorithm for N processes . . . . . . . . . . . . . . 95</p> <p>5.3 Less restrictive models of concurrency . . . . . . . . . . . . . . 96</p> <p>5.4 Fast algorithms . . . . . . . . . . . . . . . . . . . . . . . . . . . 97</p> <p>5.5 Implementations in Promela . . . . . . . . . . . . . . . . . . . . 104</p>

Managementboek Top 100

Rubrieken

Populaire producten

    Personen

      Trefwoorden

        Principles of Concurrent and Distributed Programming