問題文
Which statement correctly describes virtual threads as they were finalized in Java 21?
選択肢
- They can only be created through the scope class that groups related subtasks and waits for all of them to finish.
- They run without any stack, so a task which recurses deeply must be rewritten while it is ported.
- They map one to one onto operating system threads, so creating a large number of them consumes the same amount of memory as before.
- They are scheduled by the runtime onto a small pool of carrier threads, so a blocking call usually releases the carrier for other work.