17-Interprocess_Communication_2spp

17-Interprocess_Communication_2spp - CSC 4304 - Systems...

Info iconThis preview shows pages 1–9. Sign up to view the full content.

View Full Document Right Arrow Icon
1 CSC 4304 - Systems Programming Fall 2010 Tevfik Ko ! ar Louisiana State University November 30th, 2010 Lecture - XVII Interprocess Communication Interprocess Communication (IPC) Threads may want to communicate beyond the process boundaries for: Event notification Process Control If threads belong to the same process, they execute in the same address space, i.e. they can access global (static) data or heap directly, without the help of the operating system. However, if threads belong to different processes, they cannot access each others address spaces without the help of the operating system. 2
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Interprocess Communication (IPC) There are two fundamentally different approaches in IPC: – processes are residing on the same computer • (i.e. a shared memory system) – processes are residing on different computers The first case is easier to implement because processes can share memory either in the user space or in the system space. In the second case the computers do not share physical memory, they are connected via I/O devices (for example serial communication or Ethernet). Therefore the processes residing in different computers can not use memory as a means for communication 3 IPC Approaches We have already learned: Shared memory Pipes Sockets Signals We will learn: Message Passing FIFO (Named Pipes) 4
Background image of page 2
IPC: Message Passing 5 Message Passing 6
Background image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Implementation Questions 7 Direct Communication 8
Background image of page 4
Direct Communication - Naming 9 Indirect Communication 10
Background image of page 5

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Indirect Communication - Naming 11 Indirect Communication 12
Background image of page 6
Indirect Communication 13 Buffering 14
Background image of page 7

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Buffering 15 Synchronization 16
Background image of page 8
Image of page 9
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 11/23/2011 for the course CSC 4303 taught by Professor Staff during the Fall '10 term at LSU.

Page1 / 16

17-Interprocess_Communication_2spp - CSC 4304 - Systems...

This preview shows document pages 1 - 9. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online