Тобто ще раз: розробник Windows знає про CreateProcess, CreateThread, а розробник Linux не знає про exec/fork, pthread_create і різницю між ними?Scoffer: ↑ 21.07.2026 11:11 Те що до тебе не доходить що ти порівнюєш те що не треба порівнювати - не мої проблеми. Розробник на вінді не генерить 100500 процесів тому що це ідіотизм. Розробник на вінді генерить 1-2-3 потоки згідно з приорітетами, котрі питають ОС скільки їм доступно вцпу і породжують в такій кількості потоки, в котрих в свою чергу фіберами розрулюють стільки тасків, скільки треба. На виході вийде сіквел сервер, котрий працює супер швидко, як натурний приклад.
А твій лінупс так не вміє. Не вміє і все тут.
Це проекція, не більше.
Питати про різницю між процесом та потоком ви не хочете, тож я зроблю це за вас:
Why Thread Creation is Faster
At the kernel level, both entities are generated using the exact same underlying system call: clone(). The speed discrepancy arises because of the flags passed to clone(), which determine how many resources must be copied vs. shared.
- No Page Table Duplication: When creating a process, Linux must duplicate the parent's memory page tables. Even though Linux uses an efficient Copy-on-Write (COW) mechanism to delay physical data duplication, copying the page structures themselves takes considerable time. Threads bypass this by passing the CLONE_VM flag, meaning they map directly to the existing page tables.
- No File Table Copying: Spawning a process forces the kernel to copy the file descriptor table so the child can track files independently. Threads use the CLONE_FILES flag, simply pointing to the parent’s table instead of recreating it.
- Minimal Resource Allocation: Thread creation requires the kernel to allocate only a small, fixed chunk of memory for the thread's private stack space and CPU registers. A process requires a much larger set of standalone kernel data structures to establish its isolated ecosystem
Це називається overhead: коли ви вимірюєте скільки вам коштує власне ОС з точки зору ресурсів.Ти намагаєшся приплести швидкість розгону до сотні для фури. Так от яка б вона не була, а фура все одно перевезе більше ніж спорткар в багажнику.
Саме тому віндових "фур" немає ані в TOP-500/HPC (де фурами є Linux), ані в серверах (в т.ч. власних МS Azure), ані в побутовій електроніці (в т.ч. дуже обмеженій за RAM/CPU), взагалі ніде, окрім gaming/PC/legacy - і це потроху помирає через політику мікрослопу