Download presentation
Presentation is loading. Please wait.
Published byDelilah Hancock Modified over 9 years ago
1
Interprocess Communication: ( 3.4-3.6) CPE 261403 - Operating Systems
2
Producer – Consumer Model Ex of Intra-machine communication Editor Compiler Print Manager Machine A
3
Producer – Consumer Model Ex of Inter-machine communication Browser Web Server Machine A Machine B
4
Why IPC? Information Sharing Computation Speedup Modularity Convenience
5
IPC Modes Message PassingShared Memory Figure 3.14
6
Shared Memory The Good Simple and Easy to Use Fast The Bad Simultaneous Access Problem Network Shared Memory is Difficult Multi-Processor Cache Problems
7
Simplest Method for Shared Memory File Process 1 Process 2 Shared File
8
Linux Kernel 2.6 and Later /dev/shm Process 1 Process 2 Shared Ram Disk
9
Shared Memory Demo
10
Multi-Processor Cache Problems Inside Intel Core 2 Quad Cache Core Cache Core
11
Multi-Processor Cache Problems (cont) Inside Intel Core i7
12
Multi-Processor Cache Problems (cont) Core (Count++) Cache int Count Shared Mem int Count Shared Mem int Count Core (Count++) Cache int Count
13
Message Passing Methods Direct vs indirect communication (e.g. FTP vs Chat) Synchronous vs asynchronous comm (Chat vs Bit Torrent) Automatic vs explicit buffering (YouTube vs Telnet)
14
Examples of Message Passing Remote Procedure Call (RPC) Remote Method Invocation (RMI) Simple Object Access Protocol (SOAP) Common Object Request Broker Architecture (CORBA)
15
Message Passing in Windows XP (Mixed with Shared Memory) Similar to Sockets but contains a shared object to increase speed
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.