Professional Documents
Culture Documents
Lecture w6 01
Lecture w6 01
Examples of IPC
Operating System Concepts – 10th Edition Silberschatz, Galvin and Gagne ©2018
Examples of IPC Systems - POSIX
Operating System Concepts – 10th Edition 2 Silberschatz, Galvin and Gagne ©2018
IPC POSIX Producer
Operating System Concepts – 10th Edition 3 Silberschatz, Galvin and Gagne ©2018
IPC POSIX Consumer
Operating System Concepts – 10th Edition 4 Silberschatz, Galvin and Gagne ©2018
Examples of IPC Systems - producer–consumer problem using shared
memory
Operating System Concepts – 10th Edition 5 Silberschatz, Galvin and Gagne ©2018
Examples of IPC Systems – Windows
Operating System Concepts – 10th Edition 6 Silberschatz, Galvin and Gagne ©2018
Local Procedure Calls in Windows
Operating System Concepts – 10th Edition 7 Silberschatz, Galvin and Gagne ©2018
Pipes
• Acts as a conduit allowing two processes to communicate
• Issues:
• Is communication unidirectional or bidirectional?
• In the case of two-way communication, is it half or full-duplex?
• Must there exist a relationship (i.e., parent-child) between the
communicating processes?
• Can the pipes be used over a network?
• Ordinary pipes – cannot be accessed from outside the process that
created it. Typically, a parent process creates a pipe and uses it to
communicate with a child process that it created.
• Named pipes – can be accessed without a parent-child relationship.
Operating System Concepts – 10th Edition 8 Silberschatz, Galvin and Gagne ©2018
Ordinary Pipes
Operating System Concepts – 10th Edition 9 Silberschatz, Galvin and Gagne ©2018
Named Pipes
Operating System Concepts – 10th Edition 10 Silberschatz, Galvin and Gagne ©2018
Communications in Client-Server Systems/Sockets
• A socket is defined as an endpoint for communication
• All ports below 1024 are well known, used for standard services
Operating System Concepts – 10th Edition 11 Silberschatz, Galvin and Gagne ©2018
Socket Communication
Operating System Concepts – 10th Edition 12 Silberschatz, Galvin and Gagne ©2018
Sockets in Java
Operating System Concepts – 10th Edition 13 Silberschatz, Galvin and Gagne ©2018
Sockets in Java
• Consider this “Date” server in Java:
Operating System Concepts – 10th Edition 14 Silberschatz, Galvin and Gagne ©2018
Sockets in Java
The Date client
Operating System Concepts – 10th Edition 15 Silberschatz, Galvin and Gagne ©2018
End of Chapter 3
Operating System Concepts – 10th Edition Silberschatz, Galvin and Gagne ©2018