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


Please Help Members By Posting Answers For Below Questions

What is meant by operator precedence?

668


What is getche() function?

603


what is the role you expect in software industry?

1647


Why c is faster than c++?

625


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?

1582






main() { printf("hello"); fork(); }

689


Explain what could possibly be the problem if a valid function name such as tolower() is being reported by the c compiler as undefined?

575


In a switch statement, explain what will happen if a break statement is omitted?

631


What is volatile, register definition in C

681


What is scope and lifetime of a variable in c?

570


Why is it that not all header files are declared in every C program?

676


Why can’t constant values be used to define an array’s initial size?

827


What is the role of && operator in a program code?

564


How can I access an I o board directly?

620


What is the meaning of typedef struct in c?

584