- Hands-On System Programming with C++
- Dr. Rian Quinn
- 289字
- 2021-07-02 14:42:27
Understanding system calls
An operating system is a piece of software designed to execute one or more applications simultaneously, while also providing the resources needed for those applications to execute. To accomplish this, the operating system must be capable of dividing hardware resources between all the applications executing on the system at the same time.
For example, most personal computers (PCs) have a single hard disk that stores all the files being used by the owner of the PC. On modern PCs, it's likely the user will want to execute several applications at once—for example, a web browser and an office suite.
Both of these applications will need exclusive access to the hard disk at various times while executing. In the case of the web browser, this might be to cache websites to disk, while in the case of the office suite, this might be to store documents.
It's the operating system's responsibility to manage the applications and their access to the hard disk, to ensure that both the web browser and the office suite are able to execute properly.
To accomplish this, operating systems provide an application programming interface (API) that applications can leverage to accomplish their tasks. Accessing the hard disk is an example of one of these tasks. The read() and write() functions are examples of APIs provided by POSIX-compliant operating systems for reading from and writing data to file descriptors.
Under the hood, these APIs make calls to the operating system using an application binary interface (ABI) called a system call. The act of making system calls to accomplish tasks provided by the operating system is called system programming, which is the main focus of this book.
- 大規模數據分析和建模:基于Spark與R
- Mastering Ninject for Dependency Injection
- InfluxDB原理與實戰
- 數據挖掘原理與SPSS Clementine應用寶典
- 數據中心數字孿生應用實踐
- Flutter Projects
- SQL應用及誤區分析
- 科研統計思維與方法:SPSS實戰
- Chef Essentials
- SIEMENS數控技術應用工程師:SINUMERIK 840D-810D數控系統功能應用與維修調整教程
- Access數據庫開發從入門到精通
- 商業智能工具應用與數據可視化
- 數據庫原理與設計實驗教程(MySQL版)
- Hands-On Deep Learning for Games
- Microsoft Dynamics NAV 2015 Professional Reporting