It is a simple loadable kernel module which can handle multi-threading. Made it with references from already provided basic kernel module. Main changes that are added are mutex locks and handling I/O. Also made a program for testing of the kernelModule.
First Run make command inside the terminal.
Run insmod kernelDriver.ko for insertion of kernel module inside kernel.
Use tail -f /var/log/kern.log command for monitoring the insertion of kenel module.
Now run Userspace.c.