what is the difference between user APIs and kernel system
calls ?



what is the difference between user APIs and kernel system calls ?..

Answer / noor alam

Application Programming Interface (API) is a set of
functions, objects, protocols or datastructures for the
support of application development for
developers/programmers. It is actually a kind of function
definition which specifies how to make available of a
specific service of the system/OS. The API's are available
from library or from Operating system itself. Whenever a
programmer need a specific service from OS, he/she can use
appropriate API to do that.

Processes in a system are run in different modes, process
run in user mode have no access to the privileged
instructions. If they want perform any privileged
instructions or need of any services they request kernal for
that service through System Calls. System calls are made by
way of software interrupt. This is actually a request for
the service whereas API is a function description that can
be used by the programmer for his programs, its like a tool
used to obtain a specific task in his programs.

Is This Answer Correct ?    5 Yes 1 No

Post New Answer

More Linux System Calls Interview Questions

what are different ways the context switch happens from user to kernel space or vice-versa ?

0 Answers   Alcatel,


1.Diff between Active and passive FTP? 2.What is anacron? 3.Diff between yum update and yum install while doing for kernel? 4.root_squash and no_root_squash does what? 5.What are the commands will you execute to find a new hardware? 6.How will you find out a lun allocated from SAN? 7.What is the main diff in CaT5 and CAT6 cable, except the 1/100 and 1/1000? 8.What is stale NFS and How will you fix it? 9.What is kernel panic error? 10.How will you recover password and shadow file, in case both got deleted. Explain the steps? 11.Explain boot process 12.What is network bonding. Explain the steps? 13.What are the exit codes returned by FSCK? 14.What is LDOM? 15.Diff between block and character device?

2 Answers   Wipro,


how to configure sendmail server on red hat linux version 4 and what and all we Require?

3 Answers   Wipro,


linux file defaults permition

8 Answers  


what is the difference between user APIs and kernel system calls ?

1 Answers   NetApp,






Port number is already in use .. how to fix for apache..?

1 Answers   Google,


What are system calls used for process management in linux?

0 Answers  


what is stored in /proc ? what is significance of /proc in linux ?

3 Answers   NetApp,


what kind of information the linux driver modules (.ko ) files has ?

2 Answers   NetApp,


diff b/w spinlock, seamaphores and mutex and where to use it.

2 Answers   Intel,


linux system its not booting up its showing groub error what i need to do?

4 Answers   Wipro,


What will happen when we invoke a system call and say with an example of invoking a system call ?read? for a device?

3 Answers   NetApp,


Categories