How: A system call gets into the kernel by issuing a "trap" or interrupt.
Below is the versus between these two calls:
- Example, the C Library is same on every ANSI C implmentation. System calls are different in each OS.
- Library call is a call to a routine in a library. System call is a call to the kernel for a service.
- Library call are linked with user program. System call is an entry point to the OS.
- Library calls are executed in user address space. System calls are executed in kernel address space.
- Library calls are counted as part of "user" time. System calls are counted as part of the "system" time.
- Library calls has the lower overhead of the procedural call. System calls have higher overhead context switch to kernel and back.
No comments:
Post a Comment