+ All Categories
Home > Documents > Ch_83_MPS

Ch_83_MPS

Date post: 16-Dec-2015
Category:
Upload: lini-ickpnn
View: 214 times
Download: 0 times
Share this document with a friend
Description:
d
Popular Tags:
10
Chapter 8 Chapter 8 -3 : Distributed -3 : Distributed Systems Systems Distributed systems Distributed systems Document-based middleware Document-based middleware Coordination-based middleware Coordination-based middleware Jini Jini Grids Grids 1
Transcript
  • Chapter 8-3 : Distributed SystemsDistributed systemsDocument-based middlewareCoordination-based middlewareJiniGrids

    *

  • *Distributed SystemsFigure 8-29. Comparison of three kinds of multiple CPU systems.

  • *MiddlewareFigure 8-30. Positioning of middleware in a distributed system.Middleware layer provides certain data structures and operations that allow processes and users on far-flung machines to interoperate in a consistent wayIn a sense, middleware is like the operating system of a distributed system

  • *Document-Based Middleware (1) Figure 8-35. The Web is a big directed graph of documents.The web is a distributed system which looks like a giant collection of hyperlinked documentsIt is fundamently a client-server system

  • *Document-Based Middleware (2)When the browser gets the page http://www.minix3.org/doc/faq.html.The browser asks DNS for the IP address of www.minix3.org.DNS replies with 130.37.20.20.The browser makes a TCP connection to port 80 on 130.37.20.20.It then sends a request asking for the file doc/faq.html.The www.acm.org server sends the file doc/faq.html.The TCP connection is released.The browser displays all the text in doc/faq.html.The browser fetches and displays all images in doc/faq.html.

  • *Coordination-Based Middleware (1)LindaA system for communication and synchronizationIndependent processes communicate via an abstract tuple spaceA tuple is a structure of one or more fields, each of which is a value of some type supported by the base language

    Figure 8-40. Three Linda tuples.

  • *Matching TuplesA match occurs if the following three conditions are all met:The template and the tuple have the same number of fields.The types of the corresponding fields are equal.Each constant or variable in the template matches its tuple field.

  • *Implementing a General Semaphore in LindaPost k notes as the initial value of a semaphoredo K times postnote(s)Removenote is equivalent to wait and postnote to signal

  • *JiniJini clients and services communicate and synchronize using JavaSpaces which are modeled on the Linda tuple space.Methods defined in a JavaSpace:Write: put a new entry into the JavaSpace.Read: copy an entry that matches a template out of the JavaSpace.Take: copy and remove an entry that matches a template.Notify: notify the caller when a matching entry is written.

  • GridsA grid is a large, geographically dispersed, and usually heterogeneous collection of machines connected by a private network or the internet, and which offers a set of services to its usersThe motivation for building a grid is that when an organization did not need all of its computing power another organization could use the excess power for its needs and vice versaA popular middleware in the grid world is the Globus toolkit which provides a framework for users to share computers, files, and other resources for building distributed applications

    *