Advertisement
Guest User

Multithreading

a guest
Mar 26th, 2016
223
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.22 KB | None | 0 0
  1. #include <thread>
  2.  
  3. void main() {
  4.    
  5.     while (true) {
  6.         std::thread *superThread = new std::thread([]() {
  7.             int = 0;
  8.             while (true) {
  9.                 i ++;
  10.             }
  11.         });
  12.     }
  13. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement