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
Does free set pointer to null?
What is the difference between class and object in c?
how to count no of words,characters,lines in a paragraph.
What is the use of f in c?
please send me the code for multiplying sparse matrix using c
Create a registration form application by taking the details like username, address, phone number, email with password and confirm password (should be same as password).Ensure that the password is of 8 characters with only numbers and alphabets. Take such details for 3 users and display the details. While taking input password must appear as “****”.
Can you mix old-style and new-style function syntax?
Can we access the array using a pointer in c language?
What is clrscr ()?
What is file in c language?
What is typedf?
Explain what is the difference between a string copy (strcpy) and a memory copy (memcpy)? When should each be used?
What are the rules for identifiers in c?
Disadvantages of C language.
Does c have an equivalent to pascals with statement?