Chapter 15. Concurrency with isolates
This chapter covers
- Spawning new function isolates
- Passing messages between isolates
- Loading Dart code dynamically
- Using isolates for batch processing
Modern computer hardware provides more processing power than ever before, whether it’s in a server room serving thousands of requests per minute or in your pocket as a mobile phone or tablet. Rather than providing ever-increasing processor speeds, chip designers have achieved this improvement by adding more CPU cores. To take advantage of this greater processing power, web application design also needs to be able to scale out to use the additional CPU cores.
Earlier in this book, we discussed how Dart code runs in a single thread but can call out to ...