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


Please Help Members By Posting Answers For Below Questions

i have to apply for the rbi for the post of officers. i need to know abt the entrance questions whether it may be aps or techinical....

1528


Can i use “int” data type to store the value 32768? Why?

758


Write a program to print all permutations of a given string.

647


What is typeof in c?

611


What is the purpose of clrscr () printf () and getch ()?

600






What are the various types of control structures in programming?

630


What is the use of sizeof?

559


Linked lists -- can you tell me how to check whether a linked list is circular?

648


process by which one bit patten in to another by bit wise operation is? (a) masking, (b) pruning, (c) biting, (d) chopping,

1895


When a c file is executed there are many files that are automatically opened what are they files?

597


Why doesnt that code work?

604


Explain the red-black trees?

611


how to print the character with maximum occurence and print that number of occurence too in a string given ?

2039


5 Write an Algorithm to find the maximum and minimum items in a set of ‘n’ element.

1584


What is the difference between strcpy() and memcpy() function in c programming?

629