Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

The docs there hint at how it’s done in go and how it could be done in erlang: the runtime monitors how long a given goroutine has been running without yielding the scheduler, and uses a signal handler to interrupt code that has exceeded a 10ms quota of continuous usage.

https://medium.com/a-journey-with-go/go-asynchronous-preempt...



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

Search: