I want to download vs on my pterodactyl server but when i install it the world crashes is there a way to minimize the treads that are create to like 200 ?
Reply chain from #30
Here let me explain with my amazing degree
17
In C++, you can create more software threads than physically available hardware threads (CPU cores/logical processors) because the operating system manages and time-slices them. The C++ standard does not impose a limit on the number of threads you can create, leaving it up to the operating system and available memory.
How it Works
When a C++ program uses libraries like <thread> or high-level options like OpenMP to create numerous threads, the operating system’s scheduler handles the execution:
OS Scheduler: The operating system’s kernel is responsible for deciding which threads run on which available hardware core at any given moment.
Time-Slicing: The scheduler gives each thread a short burst of CPU time, known as a “time slice”.
Context Switching: When a thread’s time slice is up, the OS saves its state (context) and loads the state of another waiting thread to run on the core.
This conversation is on Discord · Reply there