Wonderful bright scene of Grundlsee lake in austrian Alps. Amazing nature landscape in sunny day. Great view on park and lake. Awesome summer scene. Grundlsee. Austria. Europe

This code creates endless threads crashing the system

Start

Java code

import java.util.concurrent.*;

public class EndlessThreads {

    public static void main(String[] args) {
        
        ExecutorService executorService = Executors.newCachedThreadPool();
        
        while (true) {
            executorService.execute(new Runnable() {
                public void run() {
                    //Crash the system
                }
            });
        }
    }
}

Bash

while true do for i in {1..100} do echo “Processing thread $i” /bin/bash & done done

Previous Story

Apple patches are out – old iPhones get an old zero-day fix at last!

Next Story

GoTo admits: Customer cloud backups stolen together with decryption key