|
|
Subscribe / Log in / New account

I missed something about abort

I missed something about abort

Posted Aug 24, 2025 18:02 UTC (Sun) by ssmith32 (subscriber, #72404)
In reply to: I missed something about abort by ssmith32
Parent article: Bringing restartable sequences out of the niche

Maybe more succinct: can a system call trigger what the retart code considers "an event" ( pre-emption, interrupt, cpu migration) ?

I assume the answer is "possibly", in which case the code loops infinitely. But wondering if I'm misunderstanding.


to post comments

I missed something about abort

Posted Aug 24, 2025 18:42 UTC (Sun) by corbet (editor, #1) [Link]

Yes, a system call can result in those things. As an extreme example, think of a read() call that has to wait for data to be brought in from disk; that will result in the calling thread losing access to the CPU indefinitely. But almost any system call can result in preemption and/or migration of the calling thread.


Copyright © 2025, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds