Docsity

The Distributed Computing Environments - Lecture Slides | CMSC 433, Study notes of Programming Languages

Toggle sidebar
bg1
CMSC 433, Alan Sussman, U. Maryland (via
Bill Pugh) 1
CMSC433, Spring 2002
Programming Language
Technology and Paradigms
Distributed Computing & RMI
Alan Sussman
March 12, 2002
CMSC 433, Spring 2002 -Alan Sussman 2
Administrivia
•Project 3 due tomorrow
•Commentary for project 2 due next Wed.
–submit as project 12
•Project 4 posted by Thursday
–distributed computing with RMI
•Read Ch. 15, pages 973-979, in Eckel
–Readings web page also has additional distributed
computing reading
•Talk about exam Thursday
•Back to project 2 discussion
CMSC 433, Spring 2002 -Alan Sussman 3
Is distributing computing
different?
•What kinds of distributed computing
environments exist?
•Ways in which distributed computing is
different
–Addressing objects
–Latency
–Partial failure
–Concurrency
CMSC 433, Spring 2002 -Alan Sussman 4
Distributed computing
environments
•Usually refers to multiple CPU’s
•Interprocessorcommunication via shared
address space or message passing?
•On same chip, in same room, or across the
Internet?
–latency, failure modes
CMSC 433, Spring 2002 -Alan Sussman 5
Existing environments
•Seti @ Home, Entropia
•Server for search engine
•My laptop, PDA, cell phone, MP3 player,
digital camera, …
CMSC 433, Spring 2002 -Alan Sussman 6
Types of failure
•Machine sleeps
–wakes up, recovers state
•Machine crash or failure
–machine may reboot and rejoin
•Network partition
–network may heal
pf3

Partial preview of the text

Download The Distributed Computing Environments - Lecture Slides | CMSC 433 and more Study notes Programming Languages in PDF only on Docsity!

CMSC 433, Alan Sussman, U. Maryland (via

CMSC433, Spring 2002

Programming Language

Technology and Paradigms

Distributed Computing & RMI

Alan Sussman March 12, 2002

CMSC 433, Spring 2002 - Alan Sussman 2

Administrivia

  • Project 3 due tomorrow
  • Commentary for project 2 due next Wed.
    • submit as project 12
  • Project 4 posted by Thursday
    • distributed computing with RMI
  • Read Ch. 15, pages 973-979, in Eckel
    • Readings web page also has additional distributed computing reading
  • Talk about exam Thursday
  • Back to project 2 discussion

CMSC 433, Spring 2002 - Alan Sussman 3

Is distributing computing

different?

  • What kinds of distributed computing environments exist?
  • Ways in which distributed computing is different - Addressing objects - Latency - Partial failure - Concurrency

CMSC 433, Spring 2002 - Alan Sussman 4

Distributed computing

environments

  • Usually refers to multiple CPU’s
  • Interprocessor communication via shared address space or message passing?
  • On same chip, in same room, or across the Internet? - latency, failure modes

CMSC 433, Spring 2002 - Alan Sussman 5

Existing environments

  • Seti @ Home, Entropia
  • Server for search engine
  • My laptop, PDA, cell phone, MP3 player, digital camera, …

CMSC 433, Spring 2002 - Alan Sussman 6

Types of failure

  • Machine sleeps
    • wakes up, recovers state
  • Machine crash or failure
    • machine may reboot and rejoin
  • Network partition
    • network may heal

CMSC 433, Alan Sussman, U. Maryland (via

CMSC 433, Spring 2002 - Alan Sussman 7

Uniform view of distributed

objects

  • Some objects are remote, some are local
    • Doesn’t really matter to user of object
    • Objects might transparently migrate
  • Design doesn’t have to take object distribution into account
  • Failure and performance issues don’t belong in the design
  • The interface doesn’t change if an object is remote

CMSC 433, Spring 2002 - Alan Sussman 8

Uniform view

  • Not appropriate for
    • wide area networks,
    • consumer electronics,
    • portable devices
  • Appropriate for some local area networks
    • but robust distributed applications plan for failure
    • even if all objects local
    • means in interfaces, not just implementation

CMSC 433, Spring 2002 - Alan Sussman 9

Memory access

  • Can we make the fact that an object is remote transparent?
  • Perhaps for objects
    • What about int’s?
    • What about char *’s?
  • If you can’t directly access fields and create pointers to them - then it’s not transparent CMSC 433, Spring 2002 - Alan Sussman 10

Partial failure

  • Computers fail
  • OS’s crash
  • Networks fail
  • PDA’s get turned off or taken out of the room
  • Often no warning, and each hardware/software component can fail independently of all others - and no other component may be able to tell exactly what happened

CMSC 433, Spring 2002 - Alan Sussman 11

Queue example

  • Want to add x to remote queue q
    • q.enqueue(x)
  • Operation could fail
  • Want to reliably enqueue x

CMSC 433, Spring 2002 - Alan Sussman 12

Queue example

while (true) { try { q.enqueue(x); break; } catch (RemoteException e) {} }