demikernel
demikernel copied to clipboard
[pdpix] `wait()` and `wait_any()` System Calls Should Take a Time Out
Description
We should provide alternative versions for wait() and wait_any(), which would time out after some time has elapsed and no asynchronous operation has completed. These system calls would enable applications to not block indefinitely.
Proposed Solution
Introduce the following alternative versions for wait() and wait_any():
- [x]
timedwait()- Waits for an asynchronous I/O operation to complete or a timeout to expire. (3a2bfcd437aa812c5aeb2f38798e4ea45038bb48) - [ ]
timedwait_any()- Waits for the first asynchronous I/O operation in a list to complete or a timeout to expire.