demikernel icon indicating copy to clipboard operation
demikernel copied to clipboard

[pdpix] `wait()` and `wait_any()` System Calls Should Take a Time Out

Open iyzhang opened this issue 3 years ago • 0 comments

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.

iyzhang avatar Mar 31 '22 17:03 iyzhang