-----Basic theory of Linux network programming

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.