COMP10052-AAAF-05-2010-for-viewing

Synchronous nonblocking send blocking receive psc

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: Blocking Send bufferi (P,S_C) kerneli W: wait to check comple=on of non ­blocking op dura=on in which process is blocked S: send issued dura=on to copy to/from buffer/process S_C: send processing completed P: non ­blocking op 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 W Basic Forms: Send (4)     A synchronous non ­blocking Send can return before acknowledgement arrives at the sender process that the message has been placed in the buffer of the (remote) receiver process. In this case a WaitForSynchronousSend 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 into the buffer of the (remote) receiver process. Synchronous, Non ­Blocking Send; Blocking Receive (P,S_C) bufferi kerneli kerneli bufferi processi R R_C W: wait to check comple=on of non ­blocking op P: non ­blocking op completed 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 W Basic Forms: Receive (2)     A non ­blocking Receive can return before the message has arrived and been copied into the buffer in the receiver process. In this case a WaitForReceive primi=ve is provided that, when issued by the receiver process, causes a signal to be passed to the laVer that the message has been copied into its corresponding buffer. Synchronous Blocking Send; Non ­Blocking Receive S_C bufferi kerneli kernelj bufferj processj (P,R_C) R W W: wait to check comple=on of non ­blocking op P: non ­blocking op completed dura=on in which process is blocked S: send issued R: receive issued control flow dura=...
View Full Document

Ask a homework question - tutors are online