These are flashcards an notes made by students on topics like 'messages', 'sender' and 'return', originating from:

- Michael Jesse Chonoles
ISBN-10 0128096403 ISBN-13 9780128096406
1335 Flashcards & Notes
  • This + 400k other summaries, also in PDF!
  • A unique study and practice tool
  • Never study anything twice again
  • Get the grades you hope for
  • 100% sure, 100% understanding
Remember faster, study better. Scientifically proven.
Trustpilot Logo

Study Cards on messages, sender, return

How do we draw messages?
They are normally horizontal arrows leaving the sending lifeline and arriving at the receiving lifeline


In Table 14.1, rows 1 through 4 show messages being sent and received.

Report
What can be passed in messages?
Argument values can be passed in all these messages.


Be careful that the argument values match up with the formal parameter types where the message is defined.
Report
The sender waits for a return.

How do we implement this?
Typically, we implement this by an operation call.

In Fig. 14.2, we have an exchange of synchronous messages.


Report
While the sender waits until getting the return, it does not mean that ....
the sender is necessarily blocked from sending or receiving other messages.

Nonblocking yet synchronous behavior is allowed in order to account for the possibility that the sender may have multiple parts or threads, and the waiting may block only one.
Report
Because no reply is possible, an asynchronous message cannot have a ..?
return or output parameters.
Report
  • Higher grades + faster learning
  • Don't study anything twice
  • 100% sure, 100% understanding
Discover Study Smart