Chapter 20. Actors

Topics in This Chapter image

20.1 Creating and Starting Actors — page 290

20.2 Sending Messages — page 291

20.3 Receiving Messages — page 292

20.4 Sending Messages to Other Actors — page 293

20.5 Channels — page 294

20.6 Synchronous Messages and Futures — page 295

20.7 Thread Sharing — page 296

20.8 The Actor Life Cycle — page 299

20.9 Linking Actors — page 300

20.10 Designing with Actors — page 301

Exercises — page 302

Actors provide an alternative to the traditional lock-based architecture of concurrent programs. By avoiding locks and shared state, actors make it easier to design programs that work correctly, ...

Get Scala for the Impatient now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.