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
What is meant by operator precedence?
What is getche() function?
what is the role you expect in software industry?
Why c is faster than c++?
How to write a program for machine which is connected with server for that server automatically wants to catch the time for user of that machine?
main() { printf("hello"); fork(); }
Explain what could possibly be the problem if a valid function name such as tolower() is being reported by the c compiler as undefined?
In a switch statement, explain what will happen if a break statement is omitted?
What is volatile, register definition in C
What is scope and lifetime of a variable in c?
Why is it that not all header files are declared in every C program?
Why can’t constant values be used to define an array’s initial size?
What is the role of && operator in a program code?
How can I access an I o board directly?
What is the meaning of typedef struct in c?