Virtual threads were introduced as a part of the project Loom. Virtual threads are lightweight when it comes to memory and CPU overhead. Virtual threads have less context switching cost than native threads.
Virtual threads are suitable for tasks like I/O, where a thread is blocked for most of the time, like in a server application. Virtual threads are not fast.
Virtual threads were introduced and finalized in different versions of Java.
In which version of Java were virtual threads introduced and finalized?
a) Version 17 and 20
b) Version 17 and 19
c) Version 19 and 20
d) Version 19 and 21
Created by Nancy N.
@13:50 31-May-2025
No comments:
Post a Comment