Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

YouTube

Game of Loom - Implementation Patterns and Performance Implications Playing with Virtual Threads

Devoxx via YouTube

Overview

Explore the implementation patterns and performance implications of virtual threads in Java through a unique lens - Conway's Game of Life. Dive into the potential game-changing impact of virtual threads on the Java ecosystem, comparing their scalability and simplicity to traditional asynchronous programming models. Investigate the true costs of creating and scheduling thousands or even millions of virtual threads, examining memory impact, context switching frequency, and potential cache misses. Learn through a practical implementation of the Game of Life based on the communicating sequential processes (CSP) model, comparing virtual and native thread performance across different algorithms. Gain valuable insights and rules of thumb for effectively utilizing virtual threads in your Java projects, understanding their strengths and potential pitfalls in various scenarios.

Syllabus

Introduction
Why virtual threads
Memory footprint
Do you really want this
Why virtual thread
Blocking call
Context switch
Not preemptive
Communication channel
Frame graph
Channel implementation
Conclusions

Taught by

Devoxx

Reviews

Start your review of Game of Loom - Implementation Patterns and Performance Implications Playing with Virtual Threads

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.