Fiber (FIBER)

Source: Internet
Author: User

Indy 10 also includes support for fiber. What is the fiber range? In simple terms, it is also a "thread", but it is controlled by the code, not by the operating system. In fact, a thread can be thought of as an advanced fiber. Fibers and UNIX user threads (Unix users threads) are similar.
A thread is the basic unit that the operating system uses to allocate time. A thread contains its own stack (stack), a specific register (processor registers), and a thread context. Threads are automatically dispatched by the operating system.
In general, Fiber has no advantage in a well-designed multithreaded application. However, when a fiber is used with an intelligent scheduler (Intelligent Scheduler) that can provide relevant information, it can greatly improve efficiency and improve performance.
Multiple fibers can be run using a single thread. A single fiber can also be run by multiple threads, although there can be only one thread running it at the same time. You can run multiple fibers internally.

All Indy controls, both client and server, support fiber, most of them in a transparent manner.

Currently, Indy is only implemented in Windows under the fiber.

Fiber (FIBER)

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.