Lec10-Interprocess Communication

Lec10-Interprocess Communication - National University of...

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

View Full Document Right Arrow Icon
Operating System Spring 07 National University Lec10-Interprocess Communication Prepared by Uzma Maroof uzma.maroof@nu.edu.pk
Background image of page 1

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

View Full DocumentRight Arrow Icon
2 Class Notes Class Notes
Background image of page 2
3 Reference Reference Operating system concepts, Silberschatz, 6 th edition 4.4 4.5.1- 4.5.4 Unix Network Programming Interprocess Communications, Vol. 2, 2 nd edition W. Richard Stevens Chapter 4 Man pages
Background image of page 3

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

View Full DocumentRight Arrow Icon
4 Interprocess Communication Interprocess Communication A process has access to the memory which constitutes its own address space. When a child process is created, the only way to communicate between a parent and a child process is: The variables are replicas The parent receives the exit status of the child So far, we’ve discussed communication mechanisms only during process creation/termination Processes may need to communicate during their life time.
Background image of page 4
5 Cooperating Processes Cooperating Processes Independent process cannot affect or be affected by the execution of another process. Cooperating process can affect or be affected by the execution of another process Advantages of process cooperation Information sharing Computation speed-up: make use of multiple processing elements Modularity Convenience: editing, printing, compiling in parallel Dangers of process cooperation Data corruption, deadlocks, increased complexity Requires processes to synchronize their processing
Background image of page 5

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

View Full DocumentRight Arrow Icon
6 Purposes for IPC Purposes for IPC IPC allows processes to communicate and synchronize their actions without sharing the same address space Data Transfer Sharing Data Event notification Resource Sharing and Synchronization
Background image of page 6
Image of page 7
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 01/23/2011 for the course COE 10001 taught by Professor Abad during the Spring '09 term at Alfaisal University.

Page1 / 16

Lec10-Interprocess Communication - National University of...

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

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