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 the package for freshers(Non IIT) in amazon(hyderabad). And what is the same for those who are a contract employee.
What is integer constants?
What is difference between far and near pointers?
Explain the process of converting a Tree into a Binary Tree.
What is optimization in c?
What are run-time errors?
How can I find out if there are characters available for reading?
What is c system32 taskhostw exe?
If null and 0 are equivalent as null pointer constants, which should I use?
how to capitalise first letter of each word in a given string?
to find the closest pair
What is the correct code to have following output in c using nested for loop?
Does c have an equivalent to pascals with statement?
What is the difference between abs() and fabs() functions?
How can you draw circles in C?