C implementations of memory allocator, thread scheduler, system call interface, and virtual memory, paging, swapping, and memory mapped files