470,858 Members | 1,977 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,858 developers. It's quick & easy.

library function vs system calls

Dear all,

I was going through peter van der linden's book expert C programming
there i found the following:-

Library call

*call to a routine in a library
*linked with user program
*executes in user address space
*counts as a part of user time
*has the lower head overhead of procedure call.

system call
* call to the kernel for a service
* is an entry point to the OS
* executes in the kernel address space
* has high overhead switch to kernel and back

then the author says that , remember many routines in the C library do
their work by making system calls and system() call is
actually a library call.

then how valid is the above explanation on the differences between
library call versus system call ?

why system() call is treated as a library call ?
Nov 30 '07 #1
1 5733
so**********@gmail.com wrote:
) why system() call is treated as a library call ?

The library call 'system()' and the term 'system call' just happen to have
the word 'system' in them. That doesn't mean they are related in any way.

You can write 'kernel call' instead of 'system call', but it wouldn't
make sense to rename the system() function to kernel().
SaSW, Willem
Disclaimer: I am in no way responsible for any of the statements
made in the above text. For all I know I might be
drugged or something..
No I'm not paranoid. You all think I'm paranoid, don't you !
Nov 30 '07 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

5 posts views Thread by markus | last post: by
19 posts views Thread by Deniz Bahar | last post: by
7 posts views Thread by rahul8143 | last post: by
87 posts views Thread by Robert Seacord | last post: by
21 posts views Thread by Paul Edwards | last post: by
6 posts views Thread by leoman730 | last post: by
21 posts views Thread by omkar pangarkar | last post: by
16 posts views Thread by Xiaoxiao | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.