Relativity and Abstract State Machines Edel Sherratt Aberystwyth University Aberystwyth, Wales, UK.

Slides:



Advertisements
Similar presentations
relativity Quantum Classic physics Modern physics.
Advertisements

Multiprocessors— Large vs. Small Scale Multiprocessors— Large vs. Small Scale.
Vered Gafni – Formal Development of Real Time Systems 1 Statecharts Semantics.
D u k e S y s t e m s Time, clocks, and consistency and the JMM Jeff Chase Duke University.
Relativity H2: Concepts and postulates of special relativity.
Replication Management. Motivations for Replication Performance enhancement Increased availability Fault tolerance.
SPECIAL RELATIVITY Background (Problems with Classical Physics) Classical mechanics are valid at low speeds But are invalid at speeds close to the speed.
1 Chapter 3. Synchronization. STEMPusan National University STEM-PNU 2 Synchronization in Distributed Systems Synchronization in a single machine Same.
Relativity Pierre-Hugues Beauchemin PHY 006 –Talloire, May 2013.
Faculty Of Computer Science Simon Fraser University Cmpt 880 presentation An Abstract Communication Model Uwe Glasser, Yuri Gurevich and Margus Veanes.
1 Basic abstract interpretation theory. 2 The general idea §a semantics l any definition style, from a denotational definition to a detailed interpreter.
CS 582 / CMPE 481 Distributed Systems
Ordering and Consistent Cuts Presented By Biswanath Panda.
Distributed Systems 2006 Styles of Client/Server Computing.
PHY 1371Dr. Jie Zou1 Chapter 39 Relativity. PHY 1371Dr. Jie Zou2 Outline The principle of Galilean relativity Galilean space-time transformation equations.
Application architectures
Lecture Two. Historical Background of Special Relativity.
Transaction Management
Chapter 11 Operating Systems
The laws of physics are the same in any inertial (non- accelerating) frame of reference Galileo & Einstein would both agree (at terrestrial speeds.) F=ma.
Special Theory of Relativity
Symmetries and conservation laws
Time, Clocks, and the Ordering of Events in a Distributed System Leslie Lamport (1978) Presented by: Yoav Kantor.
Chapter 17 Theoretical Issues in Distributed Systems
Application architectures
Amanda Dorsey Faranak Islam Jose Guevara Patrick Conlin
STRATEGIES INVOLVED IN REMOTE COMPUTATION
Parallel Programming Models Jihad El-Sana These slides are based on the book: Introduction to Parallel Computing, Blaise Barney, Lawrence Livermore National.
Transformations Jehee Lee Seoul National University.
Advanced mechanics Physics 302. Instructor: Dr. Alexey Belyanin Office: MIST 426 Office Phone: (979)
1 Emergence of Relativistic Space-Time in a Computational Universe Michael Nicolaidis TIMA Laboratory.
Chapter R2 Synchronizing Clocks. Newtonian time Time was held to be universal. Clocks ran the same in all inertial systems. In these systems if one system.
Geodetic VLBI Lecture 2 18 October Lecture plan 1. From measurement of space and time to measurement of space-time 2. Elements of the Special and.
RELATIVITY.
CS4231 Parallel and Distributed Algorithms AY 2006/2007 Semester 2 Lecture 3 (26/01/2006) Instructor: Haifeng YU.
Asynchronous Multi-Agent ASMs An Introduction Egon Börger Dipartimento di Informatica, Universita di Pisa
Consensus and Its Impossibility in Asynchronous Systems.
1 1.Einstein’s special relativity 2.Events and space-time in Relativity 3. Proper time and the invariant interval 4. Lorentz transformation 5. Consequences.
Advanced Computer Networks Topic 2: Characterization of Distributed Systems.
Special Relativity The Failure of Galilean Transformations
1 1.Einstein’s special relativity 2.Events and space-time in Relativity 3. Proper time and the invariant interval 4.Lorentz transformation Einstein’s special.
Announcements Exam 3 is scheduled for Wednesday April 8. Will be pushed back to Monday April 13 Tentatively will cover the rest of Chapter 4, all of Chapters.
IM NTU Distributed Information Systems 2004 Replication Management -- 1 Replication Management Yih-Kuen Tsay Dept. of Information Management National Taiwan.
CLASSICAL PHYSICS Space, Time, Motion 1.Space, time, velocity, acceleration 2.Relative motion 3.Inertial reference frames 4.Newtons laws of motion.
Replication (1). Topics r Why Replication? r System Model r Consistency Models – How do we reason about the consistency of the “global state”? m Data-centric.
Transactions and Concurrency Control. Concurrent Accesses to an Object Multiple threads Atomic operations Thread communication Fairness.
The Theory of Special Relativity. Learning Objectives  Einstein’s two postulates in his theory of special relativity: The principle of relativity. (Same.
D u k e S y s t e m s Asynchronous Replicated State Machines (Causal Multicast and All That) Jeff Chase Duke University.
Introduction Classical Physics Laws: Mechanics (Newton), Electromagnetism (Maxwell), Optics, Fluids,.. Etc. Modern Physics: What do we mean? Are the laws.
Consequences of Special Relativity Simultaneity: Newton’s mechanics ”a universal time scale exists that is the same for all observers” Einstein: “No universal.
Module 1Newtonian Relativity1 Module 1 Newtonian Relativity What do we mean by a “theory of relativity”? Let’s discuss the matter using conventional terminology.
Chapter 39 Relativity. A Brief Overview of Modern Physics 20 th Century revolution 1900 Max Planck Basic ideas leading to Quantum theory 1905 Einstein.
Ordering of Events in Distributed Systems UNIVERSITY of WISCONSIN-MADISON Computer Sciences Department CS 739 Distributed Systems Andrea C. Arpaci-Dusseau.
SPECIAL THEORY OF RELATIVITY. Inertial frame Fig1. Frame S’ moves in the +x direction with the speed v relative to frame S.
Modern Physics PC301 Intoduction to SR units Intoduction to SR units Principle of Relativity – Define Inertial Reference Frames Principle of Relativity.
From NARS to a Thinking Machine Pei Wang Temple University.
Galileo’s Relativity: Text: The laws of mechanics are the same in all inertial reference frames. More general: The laws of mechanics are the same in all.
PHYS 342: More info The TA is Meng-Lin Wu: His is His office hour is 10:30am to 12pm on Mondays His office is Physics.
Distributed Systems Lecture 6 Global states and snapshots 1.
Space-Time Symmetry.
University of Technology
Lecture 4: PHYS 344 Homework #1 Due in class Wednesday, Sept 9th Read Chapters 1 and 2 of Krane, Modern Physics Problems: Chapter 2: 3, 5, 7, 8, 10, 14,
COT 5611 Operating Systems Design Principles Spring 2012
Newtonian Relativity A reference frame in which Newton’s laws are valid is called an inertial frame Newtonian principle of relativity or Galilean invariance.
Problem 1: Ambiguity of rules when state diagrams are combined with Pascal August 11, 2008.
An Introduction To ‘High Speed’ Physics
PERSPECTIVES ON THE CAP THEOREM
Special Relativity Chapter 1-Class4.
COT 5611 Operating Systems Design Principles Spring 2014
Transactions, Properties of Transactions
Presentation transcript:

Relativity and Abstract State Machines Edel Sherratt Aberystwyth University Aberystwyth, Wales, UK

Content Abstract State Machines rock Global Time doesn’t We’ve been here before Some analogies A small step towards admissible transformations between ASMs’ frames of reference

ASMs are Powerful and Versatile Every kind of algorithm (Blass, Gurevich) Conway's game of life, ambiguous grammars, lift control, Internet telephony, database recovery … (Börger, Stärk) Asynchronous communication (Glässer, Gurevich, Veanes) SDL semantics (Glässer, Gotzhein, Prinz)

Basic ASM States are first order structures (base set with functions) Vocabulary, terms, locations Moves update the values of locations

Distributed ASM ASM with multiple threads of control Each associated with an agent Each agent interprets its ASM program according to its partial view of the state This gives an update set

Distributed ASM

A run is a partially ordered set of moves (M,<) such that – each move has finitely many predecessors – the moves performed by a given agent are linearly ordered by < – for every finite initial segment X of (M, <), and every maximal move m  X, there is a unique state  X) that results from performing m in the state  X\{m})

Distributed ASM Freedom to schedule a run Moves can be carried out – In parallel, unless they conflict – Interleaved – According to an explicit schedule Coherence condition; more restrictive than serializability in e.g. database scheduling

ASMs with Time (Graf, Prinz) Focus on moves rather than states Moves are events (contrast with spacetime events) Moves are timed so that the partial ordering on moves is reflected in a compatible order on time Time allows measurement of distance between (some) events

Global Time Implicit in the basic ASM Is it present in the case of a distributed ASM? – Confluence of rule applications suggests that it is – In any run, moves are ordered in global time, though some occur at the same global time – Local timestamps set by reading the monitored function ‘now’, which gives a global time

What’s wrong with global time? Server with clients; online ticketing system A distributed ASM, but clients have distinct, usually conflicting, goals Server determines which requests succeed and which fail Global time is determined by the server

What’s wrong with global time? A new client for a running service Abstract Communicator (Glässer et al.) acts as intermediary Communicator is part of client’s environment Global time is determined by communicator Communicator determines global time for all clients And resolves clients’ times with server’s time

What’s wrong with global time? Suppose client uses multiple services Global time is determined by more than one communicator Which takes precedence?

We’ve been here before

Galileo (and Newton) Absolute space Inertial frame is in uniform motion relative to absolute space Universal absolute time shared by all inertial frames Galilean transformation: x’=x-vt, t’=t, y’=y, z’=z

Fitzgerald, Lorentz, Einstein Inertial frames do not accelerate wrt each other Lorentz transformation preserves laws of electrodynamics So no preference for any frame

Relevance to ASMs? Analogy Space is defined by the vocabulary of an ASM Time progresses through a run Event is a combination of state (values at locations) and time (contrast with event as move) ASMs communicate only through mutually accessible locations

Where the analogy breaks down ASMs need not operate in the same space In general, shared locations represent minor points of overlap ASM spacetime is not continuous Nonetheless, differences between states can be computed as can distances in time

Aim Identify transformations analogous to the Galilean and Lorentz transformations that preserve required properties of abstract state machines

Observing an event Two ASMs, A and B Can B observe a location as A sees it? Only mutually accessible location(s) can be observed Terms of A map to terms of B iff the terms refer to the same location

Time of an event (state) Local clocks can only be synchronized if mutually accessible locations have the same values Otherwise each ASM sees the state of the other as being in its own past or future

Private state Updates are applied instantaneously But computing the update set is not necessarily instantaneous Shareable locations should not be used for scratch work

Conserving History Suppose S A precedes S A ’ in the history of A, and suppose B observes those states as S B and S B ’ That is, mutually accessible locations are mapped from A’s terms and A’s time to B’s terms and B’s time Then S B must also precede S B ’ in B’s frame of reference

Summary Some initial requirements that must be fulfilled by any transformation of observations from the state and time of one ASM to those of another have been identified Much remains to be done to achieve the aim of identifying useful transformations