9- Strategies for Thread Safety

2:50 3 Høgtalar 2 Kapittel 63 segment

Kapittel

  1. 0:03

    We have a few strategies for writing thread safe code. That is code that can be safely executed across multiple threads. The simplest solution is not to share data across threads in the first place. This is called confinement because we wan…

  2. 2:22

    And finally, another strategy is partitioning data into segments that can be accessed concurrently. Java provides a number of collection classes that support concurrency using partitioning. So multiple threads can access a collection object…