In this video I implement a GUI event loop timer using the select() system call. Since select() didn't support arbitrary timeouts in Serenity, I also implement support for that in the kernel. I realized after recording this video that the solution for millisecond accuracy in gettimeofday() isn't good enough, and will work on that in a later patch.
Recorded on 2019-02-01.
Serenity is a 32-bit Unix-like operating system I'm implementing from scratch, just for fun. https://github.com/awesomekling/serenity
Download
0 formats
No download links available.
OS hacking: Event loop timers using select() | NatokHD