How can you trace the sync() function?
The sync() system call in unix takes no arguments and returns void. Could you describe in detail, how a user program which calls sync() enters the kernel and then returns to the user process (in windows environment). Could you also describe how the registers are handled and how the process switches from user mode & kernel mode, etc. Please list each of the kernel/library source & header files that would be relevant as the call process.