Implementation of a minimal character device driver in C with pthreads and synchronization.