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

Explain what is the heap?

624


write a program to generate address labels using structures?

4008


what is the diffrenet bettwen HTTP and internet protocol

1394


What is the difference between functions abs() and fabs()?

651


What are pointers? What are stacks and queues?

582






How can I send mail from within a c program?

582


What is a char in c?

557


What is sizeof int in c?

605


What are the benefits of c language?

647


Why c is a mother language?

557


What are runtime error?

630


When a c file is executed there are many files that are automatically opened what are they files?

595


1. Write a function to display the sum of two numbers in the following ways: By using (i) pass by value (ii) pass by address a. function with argument and with return value b. function with argument and without return value c. without argument , with return value d. without argument , without return value Note: Use pass by address.

2338


What is the purpose of void in c?

620


What is floating point constants?

694