Open sandwichdoge opened 4 years ago
Need to design an I/O event system, so that when a task waits for an I/O event (disk read, keyboard, etc.), it gets put in the wait queue until I/O procedure is finished and the task will be signaled to continue.
Typical usage:
while (!event) { task_yield() }
event here could be keyboard presses.
Need to design an I/O event system, so that when a task waits for an I/O event (disk read, keyboard, etc.), it gets put in the wait queue until I/O procedure is finished and the task will be signaled to continue.