Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.


  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • DownloadDownload
  • PrintPrint
Share this Page URL
Help

Chapter 20. Actors > Sending Messages to Other Actors

20.4. Sending Messages to Other Actors

When a computation is divided among actors that concurrently work on parts of a problem, the results need to be gathered together. Actors could deposit results in a threadsafe data structure, such as a concurrent hash map, but the actor model discourages the use of shared data. Instead, an actor that has computed a result should send a message to another actor.

How does an actor know where to send the result? There are several design choices.


  

You are currently reading a PREVIEW of this book.

                                                                                        

Get instant access to over
$1 million worth of books and videos.

  

Start a Free Trial


  
  • Safari Books Online
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • DownloadDownload
  • PrintPrint