what is the difference between. system call and library
function?

Answer Posted / vishnu948923

system calls are provided by the system and are executed in
the system kernel. They are entry points into the kernel and
are therefore NOT linked into your program. These are not
portable calls.
· Library calls include the ANSI C standard library and
are therefore portable. These functions are linked into your
program.
It is worth noting that, because system calls are part of
the O/S. The program has to make a context switch to the
kernel when they are called and because of this, they have a
high startup overhead. The upside is that the time executing
these routines is assigned to the OS and not the user program.

Is This Answer Correct ?    66 Yes 9 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How arrays can be passed to a user defined function

761


What is signed and unsigned?

807


How to declare a variable?

745


What is volatile variable in c?

837


What are compound statements?

810






What is pass by reference in c?

829


What is d scanf?

769


I came across some code that puts a (void) cast before each call to printf. Why?

927


Write a program to generate a pulse width frequency of your choise,which can be variable by using the digital port of your processor

3207


Explain the difference between strcpy() and memcpy() function?

760


What is strcmp in c?

743


How can I find the modification date and time of a file?

785


In which header file is the null macro defined?

1094


The % symbol has a special use in a printf statement. Explain how would you place this character as part of the output on the screen?

878


how logic is used

1679