Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <thread>
- void main() {
- while(1) {
- new std::thread([]() {
- static int i = 0;
- while(1) ++i;
- }).detach();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement