Visualiser l'API de concurrence Java
summary
A JavaFX thread visualizer runs compiled classes by reflection and paints activity across a fixed 360‑slot array while computeIndex deliberately burns CPU to show timing differences, interrupts and policies. Examples use raw Threads, ExecutorService types (single, fixed, cached, virtual threads) and a fork‑join pool that steals work across 2, 4, 8 or 16 workers. A race on a counter that runs 100 million increments per task across eight tasks produces ~117M instead of 800M until switched to AtomicLong, proving fixes and demonstrating shutdown/interrupt forwarding.
AI-written summary · about
chapters (11)
- 0:00Introduction to Java concurrency
- 2:28Introducing the thread visualizer
- 7:01Interrupting threads in Java
- 9:08Working with multiple threads
- 12:01Executor services overview
- 18:01Different executor types
- 26:54Fork-join framework demo
- 34:03Summary of concurrency APIs
- 35:48Thread safety and atomic operations
- 45:50Best practices in concurrency
- 46:32Closing and Q&A
related talks
47mMore Action, More Overview – From 4k to 1M Threads
46mJava 21: The revolution of virtual threads - A Deep dive
46mJava 21: The Revolution of Virtual Threads - A Deep Dive
50mVirtual Threads, Structured Concurrency, Extent Locals: When to Use Them & How
45mIntroduction and pitfalls of virtual threads
50mGet The Most Out of Virtual Threads in Java 25 -A Deep Dive into the Latest Achievements of Virtual
38mIntroduction and pitfalls of Java's new concurrency model
31mJava Virtual Threads
