Question: what is the difference between system call and library function?
Answer: The main difference between System Call and Library Call is that System call is a request to the kernel to access a resource while library call is a request to use a function defined in a programming library. The operating system is an interface that allows the application programs to access hardware resources.