简体   繁体   中英

difference between command , function and systemcall

是什么之间的区别commandfunctionsystemcall

This is probably homework help, but anyhow:

  • Command - A program (or a shell built-in) you execute from (probably) your command shell.
  • Function - A logical subset of your program. Calling one is entirely within your process.
  • Systemcall - A function that is executed by your operating system; a primary way of using OS features like working with a file system or using the network.

A command can be a program, which in turn is comprised of functions, which themselves can execute system calls.

For example, the 'cp' command in Unix-like systems copies files. Its implementation includes functions which perform the copying. Those functions themselves execute system-calls like open() and read().

They are all just abstractions of a set of computer instructions which perform a given task.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM