What's the difference and connection between API(Application Programming Interface) and SC(System Call)?
2011-05-17 15:46
429 查看
Q1.Why user program cannot access the services provided by kernel directly?
A1: For in linux, the space of program operating is divided by two.the one is kernel space,the other is user space.This two spaces are isolate in logic.So user program cannot access the kernel directly.
Q2. What is SC?
A2: SC is a special kind of interface. Through it, user can access the kernel.The System Call decided the position that user accesses.
Q3. What is API?
A3: API is application programming interface that make up by some predefined functions.There is no necessary connection between API and kernel.
Q4: Difference and connection between each other?
A4: Difference: SC needs to contact with kernel,but API don not.
Connection: An API may be needed one or more SCs to finish the specified function,or maybe do not. Simply speaking, when an api needs to access the kernel, system call is needed. or else not.
Above is reference to the blog of http://mwtx.blog.163.com/blog/static/389391292009102510154927/
Thanks a lot to the author.
A1: For in linux, the space of program operating is divided by two.the one is kernel space,the other is user space.This two spaces are isolate in logic.So user program cannot access the kernel directly.
Q2. What is SC?
A2: SC is a special kind of interface. Through it, user can access the kernel.The System Call decided the position that user accesses.
Q3. What is API?
A3: API is application programming interface that make up by some predefined functions.There is no necessary connection between API and kernel.
Q4: Difference and connection between each other?
A4: Difference: SC needs to contact with kernel,but API don not.
Connection: An API may be needed one or more SCs to finish the specified function,or maybe do not. Simply speaking, when an api needs to access the kernel, system call is needed. or else not.
Above is reference to the blog of http://mwtx.blog.163.com/blog/static/389391292009102510154927/
Thanks a lot to the author.
相关文章推荐
- BAPI (Business Application Programming Interface)
- 关于使用Visual C++ 编写API(Application Programming Interface)函数时编译那点事
- GPU NVIDIA_CUDA_Programming_Cuide_1.0 Chapter 4. Application Programming Interface
- GPU NVIDIA_CUDA_Programming_Cuide_1.0 Chapter 4. Application Programming Interface
- 了解了解API(Application Programming Interface)(网摘)
- OpenGL是一个优秀的专业化的3D的API(Application Programming Interface,应用编程接口)
- API(Application Programming Interface)应用程序编程接口
- System V Application Binary Interface (1)
- Internet Server Application Programming Interface
- MAPI - Messaging Application Programming Interface
- Oracle Announces Oracle Cloud Resource Model Application Programming Interface
- EXCEL在.NET操作下的错误System.InvalidCastException: QueryInterface for interface Excel._Application failed.
- API(Application Programming Interface,应用程序编程接口)
- 第6讲java的API(Application Programming Interface)
- The Linux Programming Interface - A Linux and UNIX System Programming Handbook
- The Linux Programming Interface 11 System Limits And Options 系统限制和选择
- API(Application Programming Interface,应用程序编程接口)详解
- The Linux Programming Interface 03 System Programming Concepts 系统编程观念
- 系统调用与API(Application Programming Interface)的区别与联系
- The Linux Programming Interface 12 System And Process Information 系统和进程信息