Exam in Distributed Systems

Similar documents
Exam in Distributed Systems

Exam in Testing. Justin Pearson. Dec Cover Sheet. Problem no. Solution provided Max Your points Total: 59

Exam in Computer Architecture

Distributed Systems Exam 1 Review. Paul Krzyzanowski. Rutgers University. Fall 2016

Consistency: Relaxed. SWE 622, Spring 2017 Distributed Software Engineering

Replication and Consistency

Distributed Systems. Lec 12: Consistency Models Sequential, Causal, and Eventual Consistency. Slide acks: Jinyang Li

Distributed Systems (5DV147)

PART B UNIT II COMMUNICATION IN DISTRIBUTED SYSTEM PART A

殷亚凤. Consistency and Replication. Distributed Systems [7]

Selected Questions. Exam 2 Fall 2006

Distributed Systems. Fundamentals Shared Store. Fabienne Boyer Reprise du cours d Olivier Gruber. Université Joseph Fourier. Projet ERODS (LIG)

Synchronization. Clock Synchronization

Synchronization. Chapter 5

Distributed Systems COMP 212. Revision 2 Othon Michail

Important Lessons. A Distributed Algorithm (2) Today's Lecture - Replication

Don t Give Up on Serializability Just Yet. Neha Narula

Homework 5 (by Tupac Shakur) Due: Monday Dec 3, 11:59pm

Today CSCI Data Replication. Example: Distributed Shared Memory. Data Replication. Data Consistency. Instructor: Abhishek Chandra

OUTLINE. Introduction Clock synchronization Logical clocks Global state Mutual exclusion Election algorithms Deadlocks in distributed systems

Synchronization Part 2. REK s adaptation of Claypool s adaptation oftanenbaum s Distributed Systems Chapter 5 and Silberschatz Chapter 17

Distributed Systems Principles and Paradigms. Chapter 07: Consistency & Replication

INSTITUTE OF AERONAUTICAL ENGINEERING (Autonomous) Dundigal, Hyderabad

Chapter 6 Synchronization

Data-Centric Consistency Models. The general organization of a logical data store, physically distributed and replicated across multiple processes.


DEPARTMENT OF INFORMATION TECHNOLOGY QUESTION BANK. UNIT I PART A (2 marks)

Homework 5 (by Tupac Shakur) Solutions Due: Monday Dec 3, 11:59pm

DISTRIBUTED SYSTEMS. Second Edition. Andrew S. Tanenbaum Maarten Van Steen. Vrije Universiteit Amsterdam, 7'he Netherlands PEARSON.

Time and distributed systems. Just use time stamps? Correct consistency model? Replication and Consistency

Distributed Synchronization. EECS 591 Farnam Jahanian University of Michigan

Module 7 - Replication

Lecture 6 Consistency and Replication

June Gerd Liefländer System Architecture Group Universität Karlsruhe, System Architecture Group

Distributed Systems. Before We Begin. Advantages. What is a Distributed System? CSE 120: Principles of Operating Systems. Lecture 13.

Global atomicity. Such distributed atomicity is called global atomicity A protocol designed to enforce global atomicity is called commit protocol

Distributed Systems COMP 212. Lecture 17 Othon Michail

ICT 6544 Distributed Systems Lecture 7

TDTS04 Computer networks and distributed systems Final Exam: 14:00-18:00, Thursday, March 20, 2014

SEGR 550 Distributed Computing. Final Exam, Fall 2011

DISTRIBUTED SYSTEMS [COMP9243] Lecture 5: Synchronisation and Coordination (Part 2) TRANSACTION EXAMPLES TRANSACTIONS.

DISTRIBUTED SYSTEMS [COMP9243] Lecture 5: Synchronisation and Coordination (Part 2) TRANSACTION EXAMPLES TRANSACTIONS.

SYNCHRONIZATION. DISTRIBUTED SYSTEMS Principles and Paradigms. Second Edition. Chapter 6 ANDREW S. TANENBAUM MAARTEN VAN STEEN

Midterm 2: CS186, Spring 2015

Queen s University Faculty of Arts and Science School of Computing CISC 432* / 836* Advanced Database Systems

Distributed Systems Question Bank UNIT 1 Chapter 1 1. Define distributed systems. What are the significant issues of the distributed systems?

殷亚凤. Synchronization. Distributed Systems [6]

Consistency and Replication

Consistency and Replication 1/65

Distributed Systems: Consistency and Replication

Lecture 10: Clocks and Time

Java RMI Middleware Project

Distributed Systems Conclusions & Exam. Brian Nielsen

FACULTY OF SCIENCE AND HUMANITIES

Synchronization. Distributed Systems IT332

Replication. Consistency models. Replica placement Distribution protocols

PROCESS SYNCHRONIZATION

Verteilte Systeme (Distributed Systems)

CS555: Distributed Systems [Fall 2017] Dept. Of Computer Science, Colorado State University

CSE 5306 Distributed Systems. Synchronization

Verteilte Systeme/Distributed Systems Ch. 5: Various distributed algorithms

Synchronisation and Coordination (Part 2)

Distributed Systems. Chapman & Hall/CRC. «H Taylor S* Francis Croup Boca Raton London New York

Replication in Distributed Systems

Digital Lab Reports. Guide for 1250 Students

Replication and Consistency. Fall 2010 Jussi Kangasharju

CS 110 Practice Final Exam originally from Winter, Instructions: closed books, closed notes, open minds, 3 hour time limit.

416 practice questions (PQs)

Chapter 4: Distributed Systems: Replication and Consistency. Fall 2013 Jussi Kangasharju

Exam 2 Review. Fall 2011

Consistency & Replication

Definition of a DS A collection of independent computers that appear to its user as a single coherent system.

IMPORTANT: Circle the last two letters of your class account:

Memory Consistency. Minsoo Ryu. Department of Computer Science and Engineering. Hanyang University. Real-Time Computing and Communications Lab.

Distributed Systems. Pre-Exam 1 Review. Paul Krzyzanowski. Rutgers University. Fall 2015

Synchronization Part 1. REK s adaptation of Claypool s adaptation of Tanenbaum s Distributed Systems Chapter 5

Ch06. NoSQL Part III.

Assoc. Prof. Dr. Marenglen Biba. (C) 2010 Pearson Education, Inc. All rights reserved.

Consistency and Replication. Why replicate?

Distributed Coordination 1/39

Lecture 12: Time Distributed Systems

Distributed Systems. replication Johan Montelius ID2201. Distributed Systems ID2201

CS 186 Databases. and SID:

Distributed Systems Conclusions & Exam. Brian Nielsen

Final Review #2. Monday, May 4, 2015

Chapter 1 Introduction

Chapter 6 Synchronization (1)

Proseminar Distributed Systems Summer Semester Paxos algorithm. Stefan Resmerita

CS433 Homework 6. Problem 1 [15 points] Assigned on 11/28/2017 Due in class on 12/12/2017

11/7/2018. Event Ordering. Module 18: Distributed Coordination. Distributed Mutual Exclusion (DME) Implementation of. DME: Centralized Approach

Today CSCI Consistency Protocols. Consistency Protocols. Data Consistency. Instructor: Abhishek Chandra. Implementation of a consistency model

Distributed Systems. 19. Spanner. Paul Krzyzanowski. Rutgers University. Fall 2017

A Concurrency Control for Transactional Mobile Agents

Clock Synchronization. Synchronization. Clock Synchronization Algorithms. Physical Clock Synchronization. Tanenbaum Chapter 6 plus additional papers

CSE 131 Introduction to Computer Science Fall Exam II

Control. CS432: Distributed Systems Spring 2017

10. Replication. CSEP 545 Transaction Processing Philip A. Bernstein Sameh Elnikety. Copyright 2012 Philip A. Bernstein

Synchronization Part II. CS403/534 Distributed Systems Erkay Savas Sabanci University

CS 403/534 Distributed Systems Midterm April 29, 2004

CS 425 / ECE 428 Distributed Systems Fall 2017

Transcription:

Exam in Distributed Systems Justin Pearson 2004-03-17 - P.B. 14-19 Cover Sheet This sheet should be handed in together with the exam. Each problem must be solved on a separate sheet. Write your name on each sheet. Indicate below which questions you have answered. Problem no. Solution provided Max Your points 1 12 2 6 3 4 4 8 5 4 6 4 7 6 8 7 9 15 Total: 42/64 Name :................................................... 1

Pers.no. :................................................... Are you TF(1TT835) or MN1(1DT641) :.................... Obs I will not be able to come to the exam. If you are in any doubt when answering a question please state any assumptions that you have to make. Exam Rubic A mark of 50% is required for a pass, a 4 and 5 are distributed evenly. Answer can be in English or Swedish. Students who are registered on the TF (3 point version of the course) must only do question 1 7. Any other questions answered will be ignored. Students registered on the full (5 point) version of the course must do all questions. Each full answer should be started on a separate sheet. Please write you name and personal number on each sheet. You must indicate on the front sheet which version of the course you are registered on. 2

Have you read the exam rubric?? If not go back and do it now!!!!! 1. General Questions on Distributed Systems (a) With examples describe Access, Location and Migration transparency in a distributed system. (4 points) (b) With examples describe what Middleware is. (c) With examples 1 describe the client server model? (d) What is redundancy and why is it used in a distributed system. 2. Communication. (a) What are Client and Server Stubs and how are they used in remote procedure calls? (b) When passing data values between different machines with different operating systems what problems have to be solved? (2 points) (c) When calling a remote procedure or method where a reference parameter is passed, what problems have to be solved and how are they solved? 3. Naming (a) With examples explain the difference between iterative name resolution and recursive name resolution.. (b) Explain with examples the difference between a name server and a directory server.. 4. Logical Clocks (a) Suppose there are three processes A,B and C. All clock runs at the same rate but initially A s clock reads 10, B s clock reads 0 and C s clock reads 5. At time 10 by A s clock, A sends a message to B, this message takes 4 units of time to reach B. B then waits one unit of time and then sends a message onto C which takes 2 units of time to reach C. Assuming that the system implements Lamport s timestamps draw a picture illustrating the timestamps 1 By now you should have got the message, I want examples where possible. 3

for the messages and explain how the timestamps are obtained. (6 points) (b) What does it mean for two events to be concurrent and what is the relation of the Lamport timestamps of the two events. (2 points). 5. Clock Synchronisation (a) What is a leap second and why is it used? (b) Explain Cristian s algorithm for Clock synchronisation. 6. Explain in detail the Bully algorithm for electing a leader. (4 points). 7. Data-Centric Consistency. (a) What is strict consistency and why is not possible to achieve in a distributed system? (3 points) (b) Define sequential-consistency. You must give examples. (c) Is the following data store sequentially consistent? Explain your answer. (1 points) A W(x)a W(x)b B R(x)a R(x)b C R(x)b R(x)a (d) Explain with examples what release consistency is. Stop here if you are a TF student 8. Replication. (a) What is atomic multi-cast? (1 points) (b) Why is atomic multi-cast needed when replication is used? (2 points) (c) With examples illustrate the difference between passive and active replication. (4 points) 9. Transactions. (a) With examples define what a transaction is. (4 points) (b) What is a nested transaction. 4

(c) Explain what problems can happen there is no concurrency control where multiple transactions are being executed at the same time. (d) Define what it means for an interleaving of two transactions to be serially equivalent? (e) What is the two-phase commit algorithm? detail. (3 points) Explain it in some (f) Why is the two-phase commit algorithm used in distributed transactions? 5