Lecture 3 Multiprocessor Vs Multicomputer Vs DS
Lecture 3 Multiprocessor Vs Multicomputer Vs DS
Lecture 3 Multiprocessor Vs Multicomputer Vs DS
8.1 Multiprocessors
8.2 Multicomputers
8.3 Distributed systems
Multiprocessor Systems
Definition:
A computer system in which two or
more CPUs share full access to a
common RAM
Multiprocessor Hardware (1)
Bus-based multiprocessors
4
Multiprocessor Hardware (2)
Bus
Bus
Master-Slave multiprocessors
Multiprocessor OS Types (3)
Bus
• Symmetric Multiprocessors
– SMP multiprocessor model
Multiprocessor Synchronization (1)
• Timesharing
– note use of single data structure for scheduling
Multiprocessor Scheduling (2)
• Space sharing
– multiple threads at same time across multiple CPUs
Multiprocessor Scheduling (3)
Gang Scheduling
Multicomputers
• Definition:
Tightly-coupled CPUs that do not share
memory
• Also known as
– cluster computers
– clusters of workstations (COWs)
Multicomputer Hardware (1)
• Interconnection topologies
(a) single switch (d) double torus
(b) ring (e) cube
(c) grid (f) hypercube
Multicomputer Hardware (2)
• Switching scheme
– store-and-forward packet switching
Multicomputer Hardware (3)
Replication
(a) Pages distributed on 4 machines
• False Sharing
• Must also achieve sequential consistency
Multicomputer Scheduling
Load Balancing (1)
Process
Computer
(a) (b)
• Ethernet
(a) classic Ethernet
(b) switched Ethernet
Network Hardware (2)
The Internet
Network Services and Protocols (1)
Network Services
Network Services and Protocols (2)
• Internet Protocol
• Transmission Control Protocol
• Interaction of protocols
Document-Based Middleware (1)
• The Web
– a big directed graph of documents
Document-Based Middleware (2)
How the browser gets a page
1. Asks DNS for IP address
2. DNS replies with IP address
3. Browser makes connection
4. Sends request for specified page
5. Server sends file
6. TCP connection released
7. Browser displays text
8. Browser fetches, displays images
File System-Based Middleware (1)
(b)
(a)
• Transfer Models
(a) upload/download model
(b) remote access model
File System-Based Middleware (2)
Naming Transparency
(b) Clients have same view of file system
(c) Alternatively, clients with different view
File System-Based Middleware (3)
Client's view
• AFS – Andrew File System
– workstations grouped into cells
– note position of venus and vice
Shared Object-Based Middleware (1)
Publish-Subscribe architecture
Coordination-Based Middleware (3)
• Jini - based on Linda model
– devices plugged into a network
– offer, use services
• Jini Methods
1. read
2. write
3. take
4. notify