what is the difference between. system call and library
function?
Answers were Sorted based on User's Feedback
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 |
Answer / 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 |
Write a routine that prints out a 2-D array in spiral order!
How to write a program for swapping two strings without using 3rd variable and without using string functions.
What does c in a circle mean?
What is #define used for in c?
What is the use of getch ()?
please give me answer with details #include<stdio.h> main() { int i=1; i=(++i)*(++i)*(++i); printf("%d",i); getch(); }
Why header file is used in c?
Write a C++ program without using any loop (if, for, while etc) to print numbers from 1 to 100 and 100 to 1;
18 Answers Accenture, Cisco, Egentec, HCL, Ideaz, Infosys, M-Systems, MYR, TCS,
Which node is more powerful and can handle local information processing or graphics processing?
Write a c program to find, no of occurance of a given word in a file. The word is case sensitive.
convert 12345 to 54321 withoutusing strig
Write a program that his output * *** *****