Function library call vs system call

Source: Internet
Author: User
Function library call vs system call
Function library call System Call
In all ansi c compiler versions, C library functions are the same System calls vary with operating systems.
It calls a program (or function) in the function library) It calls the system kernel service.
Associate with user programs Is an entry point of the Operating System
Run the following command in the user address space: Run in the kernel address space
The running time belongs to "user time" The running time belongs to the system time.
It is a process call, and the call overhead is small. Switching between user space and kernel context is required, with high overhead
There are about 300 functions in the C function library libc About 90 system calls in UNIX
Typical C function library call: System fprintf malloc Typical System Call: chdir fork write BRK;

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.