(no title)
frant-hartm | 1 year ago
My understanding is that virtual threads mostly eliminate context switching - for N CPUs JVM creates N platform threads and they run virtual threads as needed. There is no real context switching apart from GC and other JVM internal threads.
A platform thread picking another virtual thread to run after its current virtual thread is blocked on IO is not a context switch, that is an expensive OS-level operation.
giamma|1 year ago
frant-hartm|1 year ago
anonymousDan|1 year ago
mike_hearn|1 year ago
immibis|1 year ago
frant-hartm|1 year ago