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
How arrays can be passed to a user defined function
What is signed and unsigned?
How to declare a variable?
What is volatile variable in c?
What are compound statements?
What is pass by reference in c?
What is d scanf?
I came across some code that puts a (void) cast before each call to printf. Why?
Write a program to generate a pulse width frequency of your choise,which can be variable by using the digital port of your processor
Explain the difference between strcpy() and memcpy() function?
What is strcmp in c?
How can I find the modification date and time of a file?
In which header file is the null macro defined?
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?
how logic is used