COMP10052-AAAF-05-2010-for-viewing

Receive is necessarily synchronous ie an asynchronous

Info iconThis preview shows page 1. Sign up to view the full content.

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

Unformatted text preview: ss. Asynchronous, Blocking Send S_C bufferi kerneli dura=on in which process is blocked S: send issued dura=on to copy to/from buffer/process S_C: send processing completed control flow dura=on of data travel (from Kshemkalyani, Singhal: Distributed Compu=ng, Cambridge UP, ISBN 978 ­0 ­521 ­87634 ­6, 2008) processi S Basic Forms: Send (2) ­Receive(1)       A synchronous blocking Send does not return un=l acknowledgement arrives back at the sender process that the message has been placed in the buffer of the (remote) receiver process. Receive is necessarily synchronous (i.e., an asynchronous Receive makes no sense) because in both the blocking and the non ­blocking case, a Receive cannot complete un=l a message has arrived in the receiver process. A blocking Receive does not return un=l the message has arrived and been copied into the buffer in the receiver process. Synchronous Blocking Send; Blocking Receive S_C bufferi kerneli kerneli bufferi processi R R_C dura=on in which process is blocked S: send issued R: receive issued control flow dura=on to copy to/from buffer/process S_C: send processing completed dura=on of data travel R_C: receive processing completed dura=on of acknowledgement travel (from Kshemkalyani, Singhal: Distributed Compu=ng, Cambridge UP, ISBN 978 ­0 ­521 ­87634 ­6, 2008) processi S Basic Forms: Send (3)       An asynchronous non ­blocking Send can return before the message has been copied out of the buffer in the sender process. In this case a WaitForAsynchronousSend primi=ve is provided that, when issued by the sender process, causes a signal to be passed to the laVer that the message has been copied out of its corresponding buffer. No acknowledgement by the (remote) receiver process is involved. Asynchronous, Non ­...
View Full Document

This document was uploaded on 02/10/2014.

Ask a homework question - tutors are online