Multiple Processor Systems
Multiple Processor Systems
Multiple Processor Systems
Chapter 8
Tanenbaum & Bo, Modern Operating Systems:4th ed., (c) 2013 Prentice-Hall, Inc. All rights reserved.
Multiple Processor Systems
Tanenbaum & Bo, Modern Operating Systems:4th ed., (c) 2013 Prentice-Hall, Inc. All rights reserved.
NUMA Multiprocessors (1)
Characteristics of NUMA machines which
distinguish them from other multiprocessors:
1.There is a single address space visible to all
CPUs.
2.Access to remote memory is via LOAD and
STORE instructions.
3.Access to remote memory is slower than
access to local memory.
Tanenbaum & Bo, Modern Operating Systems:4th ed., (c) 2013 Prentice-Hall, Inc. All rights reserved.
NUMA Multiprocessors (2)
Tanenbaum & Bo, Modern Operating Systems:4th ed., (c) 2013 Prentice-Hall, Inc. All rights reserved.
NUMA Multiprocessors (3)
Tanenbaum & Bo, Modern Operating Systems:4th ed., (c) 2013 Prentice-Hall, Inc. All rights reserved.
Master-Slave Multiprocessors
Tanenbaum & Bo, Modern Operating Systems:4th ed., (c) 2013 Prentice-Hall, Inc. All rights reserved.
Symmetric Multiprocessors
Tanenbaum & Bo, Modern Operating Systems:4th ed., (c) 2013 Prentice-Hall, Inc. All rights reserved.
Multiprocessor Synchronization (1)
Figure 8-10. The TSL instruction can fail if the bus cannot be locked.
These four steps show a sequence of events where the failure is
demonstrated.
Tanenbaum & Bo, Modern Operating Systems:4th ed., (c) 2013 Prentice-Hall, Inc. All rights reserved.
Multiprocessor Synchronization (2)
Tanenbaum & Bo, Modern Operating Systems:4th ed., (c) 2013 Prentice-Hall, Inc. All rights reserved.
Time Sharing
Tanenbaum & Bo, Modern Operating Systems:4th ed., (c) 2013 Prentice-Hall, Inc. All rights reserved.
Gang Scheduling (3)
Tanenbaum & Bo, Modern Operating Systems:4th ed., (c) 2013 Prentice-Hall, Inc. All rights reserved.
Interconnection Technology (1)
Tanenbaum & Bo, Modern Operating Systems:4th ed., (c) 2013 Prentice-Hall, Inc. All rights reserved.
Network Interfaces
Figure 8-21. Various layers where shared memory can be implemented. (a)
The hardware. (b) The operating system. (c) User-level software.
Tanenbaum & Bo, Modern Operating Systems:4th ed., (c) 2013 Prentice-Hall, Inc. All rights reserved.
Distributed Shared Memory (2)
Figure 8-25. (a) An overloaded node looking for a lightly loaded node
to hand off processes to. (b) An empty node looking for work to do.
Tanenbaum & Bo, Modern Operating Systems:4th ed., (c) 2013 Prentice-Hall, Inc. All rights reserved.
Distributed Systems (1)
Tanenbaum & Bo, Modern Operating Systems:4th ed., (c) 2013 Prentice-Hall, Inc. All rights reserved.
Distributed Systems (2)
Tanenbaum & Bo, Modern Operating Systems:4th ed., (c) 2013 Prentice-Hall, Inc. All rights reserved.
Network Hardware
Ethernet
Tanenbaum & Bo, Modern Operating Systems:4th ed., (c) 2013 Prentice-Hall, Inc. All rights reserved.
The Internet
Tanenbaum & Bo, Modern Operating Systems:4th ed., (c) 2013 Prentice-Hall, Inc. All rights reserved.
Network Protocols
Tanenbaum & Bo, Modern Operating Systems:4th ed., (c) 2013 Prentice-Hall, Inc. All rights reserved.
Document-Based Middleware (1)
Tanenbaum & Bo, Modern Operating Systems:4th ed., (c) 2013 Prentice-Hall, Inc. All rights reserved.
Document-Based Middleware (2)
For the browser to get the page
http://www.minix3.org/getting-started/index.html
1.Browser asks DNS for IP address of www.minix3.org
2.DNS replies with 66.147.238.215
3.Browser makes a TCP connection to port 80 on
66.147.238.215
4.Browser sends a request asking for the file
getting-started/index.html
Tanenbaum & Bo, Modern Operating Systems:4th ed., (c) 2013 Prentice-Hall, Inc. All rights reserved.
Document-Based Middleware (3)
Tanenbaum & Bo, Modern Operating Systems:4th ed., (c) 2013 Prentice-Hall, Inc. All rights reserved.
File-System-Based Middleware
Transfer Model
Figure 8-34. (a) Two file servers. The squares are directories
and the circles are files. (b) A system in which all clients have
the same view of the file system. (c) A system in which
different clients may have different views of the file system.
Tanenbaum & Bo, Modern Operating Systems:4th ed., (c) 2013 Prentice-Hall, Inc. All rights reserved.
Naming Transparency
Common approaches to file and directory
naming in a distributed system:
1.Machine + path naming, such as /machine/path
or machine:path.
2.Mounting remote file systems onto the local
file hierarchy.
3.A single name space that looks the same on all
machines.
Tanenbaum & Bo, Modern Operating Systems:4th ed., (c) 2013 Prentice-Hall, Inc. All rights reserved.
Semantics of
File Sharing
Tanenbaum & Bo, Modern Operating Systems:4th ed., (c) 2013 Prentice-Hall, Inc. All rights reserved.
Coordination-Based Middleware (2)
A match occurs if the following three conditions
are all met:
1.Template and tuple have the same number of
fields.
2.Types of corresponding fields are equal.
3.Each constant or variable in the template
matches its tuple field.
Tanenbaum & Bo, Modern Operating Systems:4th ed., (c) 2013 Prentice-Hall, Inc. All rights reserved.
Publish/Subscribe
Tanenbaum & Bo, Modern Operating Systems:4th ed., (c) 2013 Prentice-Hall, Inc. All rights reserved.
End
Chapter 8
Tanenbaum & Bo, Modern Operating Systems:4th ed., (c) 2013 Prentice-Hall, Inc. All rights reserved.