Skip to content

Java

Big picture: two separate mechanisms. Iteration is how you walk a collection. Concurrency is how threads share state.

Reading order

  1. Iterable and Iterator: the protocol a collection implements so a loop can walk it.
  2. Concurrency: threads, shared memory, and the hazards that come with them.