DOC PREVIEW
Rose-Hulman CSSE 332 - Inter-process Communication

This preview shows page 1-2-3 out of 10 pages.

Save
View full document
View full document
Premium Document
Do you want full access? Go Premium and unlock all 10 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 10 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 10 pages.
Access to all documents
Download any document
Ad free experience
Premium Document
Do you want full access? Go Premium and unlock all 10 pages.
Access to all documents
Download any document
Ad free experience

Unformatted text preview:

IPC with Message PassingInter-process Communication (IPC) Process interaction that require the satisfaction of two fundamental requirements: synchronization and communication Processes need to be synchronized to enforce mutual exclusion. Communication: cooperating process need to exchange information Message passing2Message Passing Enforce mutual exclusion Exchange informationsend (destination, message)receive (source, message)3Design issues4• Synchronization• Type of Addressing• Format of message• Queuing disciplineSynchronization Sender and receiver may or may not be blocking (waiting for message) Blocking send, blocking receive Both sender and receiver are blocked until message is delivered Called a rendezvous5Synchronization Nonblocking send, blocking receive Sender continues on Receiver is blocked until the requested message arrives Nonblocking send, nonblocking receive Neither party is required to wait6Addressing Direct addressing Send primitive includes a specific identifier of the destination process Receive primitive could know ahead of time from which process a message is expected Receive primitive could use source parameter to return a value when the receive operation has been performed7Addressing Indirect addressing Messages are sent to a shared data structure consisting of queues Queues are called mailboxes One process sends a message to the mailbox and the other process picks up the message from the mailbox8S1SnR1RnMailboxS1SnR1Port Figure 5.18 Indirect Process Communication(b) Many to oneS1R1Port S1(a) One to one(d) Many to manyR1RnMailbox(c) One to many9Message


View Full Document

Rose-Hulman CSSE 332 - Inter-process Communication

Download Inter-process Communication
Our administrator received your request to download this document. We will send you the file to your email shortly.
Loading Unlocking...
Login

Join to view Inter-process Communication and access 3M+ class-specific study document.

or
We will never post anything without your permission.
Don't have an account?
Sign Up

Join to view Inter-process Communication 2 2 and access 3M+ class-specific study document.

or

By creating an account you agree to our Privacy Policy and Terms Of Use

Already a member?