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
why do some people write if(0 == x) instead of if(x == 0)?
What is 2 d array in c?
What is assignment operator?
int i=10; printf("%d %d %d", i, i=20, i);
how can i access hard disk address(physical address)? are we access hard disk by using far,near or huge pointer? if yes then please explain.....
Is it fine to write void main () or main () in c?
How can I read a binary data file properly?
Why shouldn’t I start variable names with underscores?
Is register a keyword in c?
Should I learn c before c++?
PLS U SENS ME INTERVIEW O. MY EMAIL ADD, SOFIYA.SINGH@GMAIL.COM
Explain enumerated types in c language?
What is meant by int main ()?
Why is c called c not d or e?
Explain how do you list a file’s date and time?