what is the difference between. system call and library
function?
Answer Posted / eng abedalmohdi almomani
system call can be called from either kernel space or user
space(in this case include switch to privilage mode) and
executed in kernel space while library called only from
user programm and may call systemcall to perform it is
function like "printf" that need "write" system call while
other not need kernel at all like sin(),cos().....
systemcall examples : write,read,close,mmap,open,.......
library examples: fopen,fclose,printf,scanf,fscanf,.....
| Is This Answer Correct ? | 38 Yes | 8 No |
Post New Answer View All Answers
Write a program on swapping (100, 50)
What is an lvalue?
Differentiate between new and malloc(), delete and free() ?
Explain what is a program flowchart and explain how does it help in writing a program?
What are data types in c language?
Why & is used in scanf in c?
Why is python slower than c?
Can a variable be both constant and volatile?
What is the difference between void main and main in c?
When the macros gets expanded?
What is pointer to pointer in c with example?
Where does the name "C" come from, anyway?
What are the advantages of union?
find the sum of two matrices and WAP for it.
what do u mean by Direct access files? then can u explain about Direct Access Files?