






















Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
A part of the cs 501: software engineering course materials for the fall 2000 semester. It covers the topics of system architecture, specifically distributed and real-time systems. Lecture slides, assignments, and examples on sequence diagrams, distributed databases, replication, stateless and stateful protocols, firewalls, and real-time systems.
Typology: Slides
1 / 30
This page cannot be seen from the preview
Don't miss anything!























System Architecture II Distributed and Real Time Systems
Assignment 2: Requirements
Assignment 3: Design
BookBorrower
libMem: LibraryMember theCopy:Copy
theBook:Book
borrow(theCopy) okToBorrow
borrow borrow
dotted line shows object lifetime
rectangle shows focus of control
BookBorrower
libMem: LibraryMember theCopy:Copy
theBook:Book
1:borrow(theCopy) 2:okToBorrow
[ok]3:borrow 4:borrow
branch
[not ok]3:noborrow
Distributed Data
Data is held on several computer systems. A transaction may need to assemble data from several sources.
Replication
Several copies of the data are held in different locations.
Mirror: Complete data set is replicated
Cache: Dynamic set of data is replicated (e.g., most recently used)
With replicated data, the biggest problem is consistency.
User interface
User^ server
Databases
Stateless protocol Example: http Open connection Send message Return reply Close connection State in http must be sent with every message (e.g., as parameter string or in a cookie)
Stateful (session) protocol
Example: Z39.
Open connection Begin session Interactive session End session Close connection
Server remembers the results of previous transactions (e.g., authentication, partial results) until session is closed.
.edu server
cornell.edu server
cs.cornell.edu server
First attempt to resolve www.cs.cornell.edu
1
Problems?
A real time system is a software system whose correct functioning depends upon the results produced and the time at which they are produced.
http message daemon
spawned processes
TCP port 80
The daemon listens at port 80.
When a message arrives it:
spawns a processes to handle the message returns to listening at port 80
Sensors
Sonar
Laser
Signal processing
Model Control signals
Steer
Throttle
Controls
Response critical
Shared systems