Distributed Computing Fundamentals Simulations and Advanced Topics 2nd Edition Hagit Attiya - Quickly download the ebook in PDF format for unlimited reading
Distributed Computing Fundamentals Simulations and Advanced Topics 2nd Edition Hagit Attiya - Quickly download the ebook in PDF format for unlimited reading
com
https://ebookname.com/product/distributed-computing-
fundamentals-simulations-and-advanced-topics-2nd-edition-
hagit-attiya/
OR CLICK HERE
DOWLOAD EBOOK
https://ebookname.com/product/distributed-computing-fundamentals-
simulations-and-advanced-topics-second-edition-hagit-attiya/
https://ebookname.com/product/concurrent-and-distributed-
computing-in-java-1st-edition-vijay-k-garg/
https://ebookname.com/product/parallel-distributed-and-pervasive-
computing-1st-edition-marvin-zelkowitz-ph-d-ms-bs/
https://ebookname.com/product/beginning-python-from-novice-to-
professional-2nd-edition-magnus-lie-hetland/
Advancing the Human Right to Health 1st Edition Jose M.
Zuniga
https://ebookname.com/product/advancing-the-human-right-to-
health-1st-edition-jose-m-zuniga/
https://ebookname.com/product/the-temple-of-jerusalem-wonders-of-
the-world-simon-goldhill/
https://ebookname.com/product/the-qur-an-s-reformation-of-
judaism-and-christianity-return-to-the-origins-holger-m-
zellentin/
https://ebookname.com/product/random-walk-in-random-and-non-
random-environments-2nd-ed-edition-pal-revesz/
https://ebookname.com/product/militarism-sport-europe-war-
without-weapons-the-european-sports-history-review-volume-5-1st-
edition-j-a-mangan/
Atlas of Nuclear Cardiology Imaging Companion to
Braunwald s Heart Disease Expert Consult Online and
Print Imaging Techniques to Braunwald s Heart Disease
1st Edition Ami E. Iskandrian Md Macc Faha Fasnc
https://ebookname.com/product/atlas-of-nuclear-cardiology-
imaging-companion-to-braunwald-s-heart-disease-expert-consult-
online-and-print-imaging-techniques-to-braunwald-s-heart-
disease-1st-edition-ami-e-iskandrian-md-macc-faha/
Distributed Computing
WILEY SERIES ON PARALLEL
AND DISTRIBUTED COMPUTING
A complete list of titles in this series appears at the end of this volume.
Distributed Computing
Fundamentals, Simulations
and Advanced Topics
Second Edition
Hagit Attiya
Jennifer Welch
ffiWILEY
�INTERSCIENCE
A JOHN WILEY & SONS, INC., PUBLICATION
This text is printed on acid-free paper. @)
Copyright © 2004 by John Wiley & Sons, Inc. All rights reserved.
No part of this publication may be reproduced, stored in a retrieval system, or transmitted in any form
or by any means, electronic, mechanical, photocopying, recording, scanning, or otherwise, except as
permitted under Section 107 or 108 of the 1976 United States Copyright Act, without either the prior
written permission of the Publisher, or authorization through payment of the appropriate per-copy fee to
the Copyright Clearance Center, Inc., 222 Rosewood Drive, Danvers, MA 01923, (978) 750-8400, fax
(978) 646-8600, or on the web at www.copyright.com. Requests to the Publisher for permission should
be addressed to the Permissions Department, John Wiley & Sons, Inc., 111 River Street, Hoboken, NJ
07030, (201) 748-6011, fax (201) 748-6008.
Limit of Liability/Disclaimer of Warranty: While the publisher and author have used their best efforts in
preparing this book, they make no representations or warranties with respect to the accuracy or
completeness of the contents of this book and specifically disclaim any implied warranties of
merchantability or fitness for a particular purpose. No warranty may be created or extended by sales
representatives or written sales materials. The advice and strategies contained herein may not be
suitable for your situation. You should consult with a professional where appropriate. Neither the
publisher nor author shall be liable for any Joss of profit or any other commercial damages, including
but not limited to special, incidental, consequential, or other damages.
For general information on our other products and services please contact our Customer Care
Department within the U.S. at 877-762-2974, outside the U.S. at 317-572-3993 or fax 317-572-4002.
Wiley also publishes its books in a variety of electronic formats. Some content that appears in print,
however, may not be available in electronic format.
ISBN 0-471-45324-2
10 9 8 7 6 5 4 3 2 1
Preface
v
vi PREFACE
provide a bibliographic history of the ideas and discuss their practical applications in
existing systems.
Distributed Computing is intended as a textbook for graduate students and ad
vanced undergraduates and as a reference for researchers and professionals. It should
be useful to anyone interested in learning fundamental principles concerning how to
make distributed systems work, and why they sometimes fail to work. The expected
prerequisite knowledge is equivalent to an undergraduate course in analysis of (se
quential) algorithms. Knowledge of distributed systems is helpful for appreciating
the applications of the results, but it is not necessary.
This book presents the major models of distributed computing, varying by the
mode of communication (message passing and shared memory), by the synchrony
assumptions (synchronous, asynchronous, and clocked), and by the failure type (crash
and Byzantine). The relationships between the various models are demonstrated by
simulations showing that algorithms designed for one model can be run in another
model. The book covers a variety of problem domains within the models, including
leader election, mutual exclusion, consensus, and clock synchronization. It presents
several recent developments, including fast mutual exclusion algorithms, queue locks,
distributed shared memory, the wait-free hierarchy, and failure detectors.
Part I of the book introduces the major issues-message passing and shared
memory communication, synchronous and asynchronous timing models, failures,
proofs of correctness, and lower bounds-in the context of three canonical problems:
leader election, mutual exclusion, and consensus. It also presents the key notions of
causality of events and clock synchronization.
Part II addresses the central theme of simulation between models of distributed
computing. It consists of a series of such simulations and their applications, in
cluding more powerful interprocess communication from less powerful interprocess
communication, shared memory from message passing, more synchrony from less
synchrony, and more benign kinds of faults from less benign kinds of faults.
Part III samples advanced topics that have been the focus of recent research, in
cluding randomization, the wait-free hierarchy, asynchronous solvability, and failure
detectors.
An introductory course based in this book could cover Chapters 2 through 1 0,
omitting Section 1 0.3. A more theoretical course could cover Chapters 2, 3, 4, 5,
Section 14.3, and Chapters 1 0, 15, 1 1 and 1 7 . Other courses based on this book are
possible; consider the chapter dependencies on the next page. The book could also
be used as a supplemental text in a more practically oriented course, to flesh out the
treatment of logical and vector clocks (Chapter 6), clock synchronization (Chapters 6
and 1 3), fault tolerance (Chapters 5 and 8), distributed shared memory (Chapter 9),
and failure detectors (Chapter 1 7).
Changes in the second edition: We have made the following changes:
• We added a new chapter (Chapter 17) on failure detectors and their application
to solving consensus in asynchronous systems and deleted two chapters, those
on bounded timestamps (formerly Chapter 1 6) and sparse network covers
(formerly Chapter 1 8).
PREFACE vii
Chapter l
Introduction
Chapter 9
Distributed Shared Memory
Chapter 10
Read/Write Objects
Chapter 1 7 Chapter 1 6
Eventually Stable Consensus Asynchronous Solvability
Chapter dependencies.
• We added new material to the existing chapters on fast mutual exclusion and
queue locks (Chapter 4), practical clock synchronization (Chapters 6 and 1 3),
and the processor lower bound for simulating shared memory with message
passing (Chapter 1 0).
at TAMU, as did Leonid Fouren, who was the teaching assistant for the class at the
Technion.
The students in our classes suffered through confusing versions of the material and
provided a lot of feedback; in particular, we thank Eyal Dagan, Eli Stein (Technion,
Spring 1 993), Saad Biaz, Utkarsh Dhond, Ravishankar Iyer, Peter Nuernberg, Jingyu
Zhang (TAMU, Fall 1996), Alla Gorbach, Noam Rinetskey, Asaf Shatil, and Ronit
Teplixke (Technion, Fall 1997).
Technical discussions with Yehuda Afek, Brian Coan, Eli Gafni, and Maurice
Herlihy helped us a lot. Several people contributed to specific chapters (in alphabetic
order): Jim Anderson (Chapter 4), Rida Bazzi (Chapter 1 2), Ran Cannetti (Chap
ter 14) , Soma Chaudhuri (Chapter 3), Shlomi Dolev (Chapters 2 and 3),Roy Friedman
(Chapters 8 and 9), Sibsankar Haldar (Chapters 1 0), Martha Kosa (Chapter 9), Eyal
Kushilevitz (Chapter 14), Dahlia Malkhi (Chapter 8), Mark Moir (Chapter 4), Gil
Neiger (Chapter 5), Boaz Patt-Shamir (Chapters 6, 7 and 1 1), Sergio Rajsbaum
(Chapter 6), and Krishnamurthy Vidyasankar (Chapters 10).
Acknowledgmentsfor the second edition: We appreciate the time that many people
spent using the first edition and giving us feedback. We benefited from many of Eli
Gafni 's ideas. Panagiota Fatourou provided us with a thoughtful review. Evelyn
Pierce carefully read Chapter 10. We received error reports and suggestions from Uri
Abraham, James Aspnes, Soma Chaudhuri, Jian Chen, Lucia Dale, Faith Fich, Roy
Friedman, Mark Handy, Maurice Herlihy, Ted Herman, Lisa Higham, lyad Kanj,
ldit Keidar, Neeraj Kou!, Ajay Kshemkalyani, Marios Mavronicolas, Erich Mikk,
Krzysztof Parzyszej , Antonio Romano, Eric Ruppert, Cheng Shao, T.N. Srikanta,
Jennifer Walter, and Jian Xu.
Several people affiliated with John Wiley & Sons deserve our thanks. We are
grateful to Albert Zomaya, the editor-in-chief of the Wiley Series on Parallel and
Distributed Computing for his support. Our editor Val Moliere and program coordi
nator Kirsten Rohstedt answered our questions and helped keep us on track.
Writing this book was a long project, and we could not have lasted without the love
and support of our families. Hagit thanks Osnat, Rotem and Eyal, and her parents.
Jennifer thanks George, Glenn, Sam, and her parents.
The following web site contains supplementary material relating to this book,
including pointers to courses using the book and information on exercise solutions
and lecture notes for a sample course:
http://www.cs.technion.ac.il/""hagiVOC/
1 Introduction 1
1.1 Distributed Systems 1
1.2 T heory of Distributed Computing 2
1.3 Over view 3
1.4 Relationship of T heory to Practice 4
Part I F undamentals
ix
x CONTENTS
5 Fault-Tolerant Consensus 91
5.1 Synchronous Systems with Crash Failures 92
5.1.1 Formal Model 92
5.1.2 The Consensus Problem 93
5.1.3 A Simple Algorithm 93
5.1.4 Lower Bound on the Number of Rounds 95
5.2 Synchronous Systems with Byzantine Failures 99
CONTENTS xi
Part II Simulations
14 Randomization 297
14.1 Leader Election: A Case Study 297
14.1.1 Weakening the ProblemDefinition 297
14.1.2 Synchronous One-Shot Algorithm 299
14.1.3 Synchronous Iterated Algorithm and
Expectation 300
14.1.4 Asynchronous Systems and Adversaries 302
14.1.5 Impossibility of Uniform Algorithms 303
14.1.6 SummaryofProbabilisticDefinitions 303
14.2 Mutual Exclusion with Small Shared Variables 305
14.3 Consensus 308
14.3.1 The General Algorithm Scheme 309
14.3.2 A Common Coin with Constant Bias 314
14.3.3 Tolerating Byzantine Failures 315
14.3.4 Shared Memory Systems 316
Our website is not just a platform for buying books, but a bridge
connecting readers to the timeless values of culture and wisdom. With
an elegant, user-friendly interface and an intelligent search system,
we are committed to providing a quick and convenient shopping
experience. Additionally, our special promotions and home delivery
services ensure that you save time and fully enjoy the joy of reading.
ebookname.com