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)