You are previewing Scala for the Impatient.

Scala for the Impatient

Cover of Scala for the Impatient by Cay S. Horstmann Published by Addison-Wesley Professional
O'Reilly logo

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, ...

The best content for your career. Discover unlimited learning on demand for around $1/day.