17-Interprocess_Communication

17-Interprocess_Communication - CSC 4304 - Systems...

Info iconThis preview shows pages 1–4. 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 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 IPC: Message Passing 5 Message Passing 6
Background image of page 1

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 Direct Communication - Naming 9 Indirect Communication 10 Indirect Communication - Naming 11 Indirect Communication 12
Background image of page 2
Indirect Communication 13 Buffering
Background image of page 3

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

View Full DocumentRight Arrow Icon
Image of page 4
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 12/04/2010 for the course CSCI 4304 taught by Professor Kosar during the Spring '10 term at LSU.

Page1 / 6

17-Interprocess_Communication - CSC 4304 - Systems...

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

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