1. Learn the basic concepts of Linux network programming Primary Mastery
system resources
|
Refers to some active units (except storage devices) such as CPU and memory
|
Program |
Refers to compiled binaries that are stored on disk and do not occupy system resources |
Process |
The program is relocated from the hard drive, resulting in one or more process schedules. |
Concurrent----> Single channel program design
|
At the same time, multiple processes run concurrently and require CPU running resources, but only one process task consumes CPU resources at the same moment. Other process tasks can only be queued for the CPU process to finish executing |
Concurrent----> Multi-Channel program design
|
At the same time, multi-process running simultaneously, need to occupy CPU running resources, CPU in the form of time slices, a time broken into a number of time slices, different time slices to perform different process debugging tasks. |
Clock interrupt |
CPU schedules a process task in the form of a time slice, and any process does not want to abandon CPU resources during execution, so the system needs a means of forcing the process to let the CPU resources out. Clock interrupts have a hardware base as a guarantee, an irresistible process, an interrupt handler in the operating system, to be responsible for high program execution. |
2. CPU and MMU
650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M02/82/74/wKiom1dVkxTjNsVoAADrGzUcKao424.png "title=" CPU and MMU "alt=" Wkiom1dvkxtjnsvoaadrgzuckao424.png "/>
3. Process status
650) this.width=650; "src=" Http://s2.51cto.com/wyfs02/M02/82/74/wKiom1dVlYvRa3yRAAEpKEyHhRU559.png "title=" Process execution state "alt=" Wkiom1dvlyvra3yraaepkeyhhru559.png "/>
This article is from the "Sea" blog, be sure to keep this source http://lisea.blog.51cto.com/5491873/1786760
-----Basic theory of Linux network programming