What is the difference between system call and library function?
Question: What is the difference between system call and library function?
Question:What is the difference between system call and library function?
AnswerThe key difference b/n system call & library function are given below:
1.System calls are given by system and executed in the system kernel. Than they are called non-portable calls where as library function include ANSI C standard library.So, they are portable.
2.System calls are entry point into the kernel.So, they are not linked with the program.
Where as library functions are linked with the program.
3.System calls are given by system,Where as library functions are given by programmer.
4.In system calls,time overhead in calling the system call since a transition has to take place between user mode and kernel mode,Where as time overhead is not required in library function call.
5.In C, We use open() to open a file is a system call,Where as use fopen() to open a file is a library function.
By:Vivek Kr. Agarwal
Date:
What is the difference between system call and library function?
Post Your Answers
Related Links
- Whar is the Auto storage class in C ?
- How to convert an char array to decimal array?
- How to fill a rectangle using window scrolling in C?
- Explain about storage of union elements.
- How to differentiate while and do while statement?
- How to convert a string into integer?
- How to print our name without using semicolon in c?
- How to print value of integers into words?
- What will be the output of x++ + ++x?
- what are header files?Can i run program without using header file?
- What is macro?
- How multiplication take place upto 200 digits?
- How to differentiate i++* and *++i?
- What is the difference between getch() and getchar()?
- Write a program crashed before reaching main? If happen, how?
- Write a program for 1 232 34543 4567654?
- What does exit() do?
- What is the difference between memcpy and strcpy?
- How can we handle exceptions in C?
- How to compare two strings without using the strcmp() function?
- How to access or modify the constt variable in C ?
- What is an volatile variable?
- How the processor registers can be used in C?
- IF **p and &(*p) are same, than tell how?
- Can you write function similar to printf()?
- How to use functions fseek(), freed(), fwrite() and ftell()?
- What do you understand about datatype?
- What are the data type modifiers?
- what are the constants?Explain in brief?
- How to differentiate b/n definition and declaration?
- How to define their types of variables and initialize them?
- What is type casting?Explain it with an example?
- What are the Array?How to define and declare them?
- What are the Array Indexing?explain.
- What do you understand about String?Explain it.
- What are the reserved Keywords?Explain it.
- What are the ANSI reserved names in C?
- What are the pointers?How to declare them?
- What are the Indirection?Explain with an example?
- What are the Function Pointer?Explain with an example?
- What are the Bit Operators?
- What are the External Variables?
- How to define structure in C?
- How do u understand about structures of arrays?
- How do you define offsetof() Macro?
- What the use of malloc() function?
- What are the different types of malloc() function in C?
- What is the use of calloc() function?
- What are the different type of calloc() function?
- How to use free() function?
Question:What is the difference between system call and library function?