Skip to content
academia.sh

Unit 02 of 03

Concurrency

Asynchronous functions, tasks and task groups in structured concurrency, actors that isolate shared state, the safety of interface updates on the main thread, the older queue-based model and reactive streams.

Published Updated

Lessons

  1. 01 Asynchronous Functions A measurement showing that when two operations that can suspend are awaited in sequence, the remaining stock depends on the order of reservation, while a read operation does not see the order. 12 min read
  2. 02 Tasks and Task Groups A measurement showing that when the results of jointly started work are collected as a set they are independent of arrival order, while collected as an array they depend on order. 14 min read
  3. 03 Actors A measurement showing that actor isolation allows only one piece of work at a time, yet the order of two requests and the repetition of a counter still change the result. 13 min read
  4. 04 Main Thread Isolation A measurement showing that the operation updating the list the interface shows depends on arrival order without a version number and becomes robust with one. 14 min read
  5. 05 Queue-Based Concurrency A measurement showing that jobs added to a serial queue keep their order, but that appending and assigning a value fall into different classes under repetition and order. 14 min read
  6. 06 Reactive Streams A measurement showing that a repeated subscription to a publisher repeats the request, that a shared stream stays robust, and that the operator dropping consecutive repeats depends on the pair of values. 14 min read

Start typing to search.

↑↓ ↵ Esc navigate · open · close