![]() ![]() ![]() I don't know whether it is helping or not, but here are some codes: The difference is that there is a stackful continutation which is implemented in the JVM and the virtual thread wraps the task into a continutation and when a blocking operation occurres then the system will subsribe for the event and yield the contionuation and when the callback is called then the virtual thread / the continutation is scheduled again in the pool. The underlying implementation using the same callback based mecahanism as every non-blocking IO solution.
0 Comments
Leave a Reply. |