What is API (Application Program Interface)



Application, In the above example a simple program, it takes at least thousands of system calls per second. Therefore Most programmers create applications using the Application Programming Interface (API). In the API there function to replace the language used in the system calls the language is more structured and easy to understand by programmer. Functions are created using the API will then call the appropriate system calls to the operating system. There is a possibility of a name similar to the name of the system calls in the API.
The advantage is programmed by using the API:
Application, Portability. Programmer using the API can run the program on any operating system as long as it is installed the API. While the system call differs between operating systems, with a note in its implementation may be different.
More Easily Understood. API uses language that is more structured and easier to understand than the language system call. It is very important in terms of editing and development.

Application, System call interface serves as a liaison between the API and system call is understood by the operating system. System call interface will translate commands in the API and then will call the system calls required.
Application, To open a file the user is using a program that was created with the help of the API, the command of the user are translated into commands used by the program open (). Command open () is a command from the command API and not directly understood by the operating system kernel. Therefore, in order to be understood by the user wishes the operating system, then perintah open () was translated into system call by the system call interface. Implementation of the open command () earlier can vary depending on the operating system that we use.

0 Response to "What is API (Application Program Interface)"

Post a Comment

Iklan Atas Artikel

Iklan Tengah Artikel 1

Iklan Tengah Artikel 2

Iklan Bawah Artikel