A sample implementation of file cache in user space using POSIX threads in C