Hacker News new | past | comments | ask | show | jobs | submit login

I assume this works so quickly in part because goroutines are backed by a pool of OS threads that don't block? So everybody doesn't get stuck waiting for a thread that's blocked to get around to checking the preemption flag?



Right, blocked threads are stopped in the userspace scheduler so there are no synchronization issues with just keeping them stopped.




Join us for AI Startup School this June 16-17 in San Francisco!

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: