Cerl2 Series 3: cerl is both a network library and an operating system

Source: Internet
Author: User

I am not a fan of the title party. Cerl/async is an operating system. This is what we know together with our partners who develop cerl.

 

The most important thing for an operating system suitable for server development is three:

  1. Process Management
  2. Io Management
  3. Memory Management

We have done these three things on our own.

 

First, process management. Although Windows provides fiber, Linux also has the libucontext library. But they are not the "main character" in the operating system ". In the current operating system environment, a fiber is only an isolated fiber. It has nothing to do with other subsystems of the Windows/Linux operating system. That is to say, there is no fiber schedule at all. We have to do this by ourselves.

 

Then let's look at Io management. In fact, this is the same as process management. The key to process management is process scheduling. The most important thing about process scheduling is to coordinate IO requests. In other words, the core content of cerl/async is to provide a set of I/O operation Interfaces Based on Fiber. This allows Io coordination between different fiber processes to improve system performance.

 

Memory Management. This is quite natural. Most server programmers will develop their own memory manager as a necessary tool for home travel.

 

As a result, cerl/async is indeed doing what the operating system needs to do. One day it will become a natural part of the operating system. I know that win7 already has this trend, because she introduced "User Thread Scheduling", that is, thread scheduling in the user State, rather than in the core state. This actually acknowledges the significance of the fiber (fiber, or user-state thread. I am personally optimistic, and I think that fiber learning is not far from mainstream developers.

 

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.