17-Interprocess_Communication - CSC 4304 Systems...

Info icon This preview shows pages 1–4. Sign up to view the full content.

View Full Document Right Arrow Icon
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: Data Transfer & Sharing Event notification Resource Sharing & Synchronization 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
Image of page 1

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

View Full Document Right Arrow Icon
Implementation Questions 7 Direct Communication 8 Direct Communication - Naming 9 Indirect Communication 10 Indirect Communication - Naming 11 Indirect Communication 12
Image of page 2
Indirect Communication 13
Image of page 3

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

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

{[ snackBarMessage ]}

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern