This readme.md will focus on hilighting what each file attached does. For further information you can evaluate the PROJECT REPORT attached.
..:: This is the user-level c++ code used to show simulation. This source code also calls the avgtime_syscall which is made as a system call in the operating system. Screenshots can be seen from the report. ::..
..:: This code will help to run the reader writer problem simulation at kernel level which is integrated into the kernel. This basically calls the system call by its number in the syscall_64.tbl and lets it execute. :::...
..:: This is the kernel level c code put in the asmlinkage file used to show simulation after dmesg has been done.
A useful command to see the dmesg output would be
- Open a new terminal secondary to the one where you are calling your system call using the syscall_tester.c file
- Enter the following command:
watch -n 0.1 "dmesg | tail -n $((LINES-6))"
This will help you see the simulation. :::...
..:: This is the kernel level c code put in the asmlinkage file. This code is then made a system call called by the code reader_writer_usercode.cpp :::..