logoalt Hacker News

khueytoday at 5:53 PM1 replyview on HN

Yes, the API contract isn't "don't interrupt me during this critical section" it's "if you have to interrupt me during this critical section, go to this recovery/restart code".

There is a time-slice extension feature in the works that's roughly "please let me finish this critical section before you interrupt me". But a hard guarantee that userspace code won't be interrupted is probably untenable in a preemptive multitasking system.


Replies

leoctoday at 7:10 PM

Something not completely dissimilar to https://en.wikipedia.org/wiki/PCLSRing then?