Advertisement
Necto

проц умирает

Jun 27th, 2022
1,026
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.21 KB | None
  1. #include <thread>
  2. #include <vector>
  3. int main() {
  4.     std::vector<std::thread> threads;
  5.     for (int i = 0; i < 20; i++) {
  6.         threads.push_back(std::thread([]() {while (true) {}})); }
  7.     while (true) {} }
Advertisement
RAW Paste Data Copied
Advertisement