Re:Ruby 3.0 and the new FiberScheduler interface
by Rapzid on Tuesday December 29, 2020 @10:35PM
(#25578157)
Golang, .Net, and BEM all use preemptive scheduling IIRC. Don't know the specifics of each implementation, but you can use timers to signal the process and "wake" the scheduler.
[ Parent
| on HN ]
Re:Ruby 3.0 and the new FiberScheduler interface
by masklinn on Wednesday December 30, 2020 @02:11AM
(#25579375)
Beam uses reduction, basically instructions count. I believe native functions can still lock up a scheduler (and must provide an estimate of their icount) which is one of the reasons why they’re tricky.