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
What is null pointer in c?
Can the curly brackets { } be used to enclose a single line of code?
write a program in c language to print your bio-data on the screen by using functions.
How can you find the exact size of a data type in c?
What is output redirection?
Where does the name "C" come from, anyway?
Do you know the use of 'auto' keyword?
Difference between pass by reference and pass by value?
Can true be a variable name in c?
Stimulate calculator using Switch-case-default statement for two numbers
How can I invoke another program (a standalone executable, or an operating system command) from within a c program?
what are the 10 different models of writing an addition program in C language?
Whats s or c mean?
What is New modifiers?
What is optimization in c?