SYSC-3303-07-Messaging

SYSC-3303-07-Messaging - SYSC 3303 RealTime Programming...

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

View Full Document Right Arrow Icon
SYSC 3303 Real Time Programming Inter Process Communication
Background image of page 1

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

View Full DocumentRight Arrow Icon
ter Process Communication Inter Process Communication onceptually Co ceptua y Pipes : 1:1, one way Implementation of classic producer/consumer Two processes communicate via finite buffer, one Pipe created by system call: Returns two pipe descriptors (read/write) Pipe exists only as long as the processes Producer can terminate before consumer is done. (elasticity) Named pipes: For remote processes, via filesystem. pp p, y Sockets Streams 1/30/2009 SYSC 3303 Winter 2009 C. Schramm 2
Background image of page 2
ter Process Communication Inter Process Communication Conceptually Pipes Sockets : uni or bi directional ath itself is modeled as a channel with two endpoints (i.e. Path itself is modeled as a channel with two endpoints (i.e. sockets) Communication between two processes, but can change over time 1. Socket is created: Socket descriptor is handle of the endpoint. 2. Socket is bound to a process Messages to be sent are queued at sending socket until sent by river driver Messages received are queued until accepted by receiving process Streams 1/30/2009 SYSC 3303 Winter 2009 C. Schramm 3
Background image of page 3

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

View Full DocumentRight Arrow Icon
ter Process Communication Inter Process Communication Conceptually Pipes Sockets Streams
Background image of page 4
Image of page 5
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 07/16/2009 for the course SYSC 3303 taught by Professor Shramp during the Spring '09 term at Carleton CA.

Page1 / 18

SYSC-3303-07-Messaging - SYSC 3303 RealTime Programming...

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

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