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
Define and explain about ! Operator?
Explain modulus operator.
What are valid operations on pointers?
What is substring in c?
What is restrict keyword in c?
What are the 4 types of programming language?
What is the purpose of macro in C language?
What is variable and explain rules to declare variable in c?
What is meant by operator precedence?
What are the 32 keywords in c?
Explain what are the __date__ and __time__ preprocessor commands?
Is struct oop?
Why we use int main and void main?
Write an efficient algo and C code to shuffle a pack of cards.. this one was a feedback process until we came up with one with no extra storage.
Why isnt there a numbered, multi-level break statement to break out