Hacker News new | ask | show | jobs
by sppfly 857 days ago
I'm wondering if this scheduler is for something like user-space threads. And What is the relationship between such scheduler and go runtime for goroutine and JVM for Java virtual thread?
1 comments

In this example, the kernel is doing the task switching. They are "real" threads. The userspace component is informing the kernel which tasks should be run.

goroutines and Java virtual threads are a separate idea. The application saves its state and then yields back to a scheduler in the application.