Concurrency

Running more than one thing at a time without corrupting shared state.

2 subjects · 6 topics

Subjects covering this category

2 subjects
  • Subject · Intermediate to Advanced

    Running Java on more than one thread without corrupting the data underneath.

    • Threads and What They Cost
    • Why Shared State Breaks
    • Locks
    5 topics · 43 cardsnot started
  • Subject · Beginner to Advanced

    Wiring a Java application together with Spring's IoC container, instead of doing it by hand.

    • Why Spring Exists
    • The Bean and the Container
    • Wiring Beans Together
    4 topics · 25 cardsnot started

In Concurrency itself

6 topics
  • Java Concurrency

    Why shared state breaks between threads: race conditions, non-atomic operations, visibility, and choosing volatile, atomics or locks.

    Intermediate to Advanced9 cards · 5 qnot started

  • Java Concurrency

    Locks in Java: what synchronized guarantees, which object it locks, reentrancy, ReentrantLock, and what a lock cannot protect.

    Intermediate to Advanced9 cards · 5 qnot started

  • Java Concurrency

    Executors and futures: running tasks on a thread pool, getting results back, CompletableFuture, and shutting a pool down.

    Intermediate to Advanced9 cards · 5 qnot started

  • Java Concurrency

    Java threads: starting work that runs alongside your code, the states a thread passes through, and platform vs virtual threads.

    Intermediate to Advanced8 cards · 5 qnot started

  • Java Concurrency

    Deadlock in Java: how two locks taken in opposite orders stop a program, the four conditions, lock ordering, livelock and starvation.

    Intermediate to Advanced8 cards · 5 qnot started

  • Spring Core

    Bean scopes and lifecycle callbacks: how many instances of a bean exist, how long each lives, and who cleans it up.

    Intermediate to Advanced7 cards · 4 qnot started