The introduction of virtual threads in Java 21 has created a lot of buzz around the community. While I still try to wrap my head around actual benefit I will be getting by this feature, I stumble upto three terminologies
- virtual thread
- carrier thread
- platform thread
While I understood that the platform thread is an actual OS thread and the virtual thread Virtual threads are a lightweight implementation of threads that is provided by the JDK rather than the OS, and somehow these two threads are tied via a carrier thread. But I am still unclear about their exact anotomy and how they work in conjection
Источник: https://stackoverflow.com/questions/780 ... in-context