Slide 22
Slide 22 text
7/12/2023
Copyright © 2021, Oracle and/or its affiliates |
22
A virtual thread is a thread
- Race conditions, visibility, locking, … are the same
Loom: Virtual Threads (21)
A Platform thread:
- takes ~1ms to start
- consumes ~2MB
- context switching ~0,1ms
A Virtual thread:
- takes ~1ms to start
- consumes ~200kB
Blocking a Virtual Thread is OK!