This code creates endless threads crashing the system


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


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

Previous Story

Apple marks Data Privacy Week with in-store privacy training, more

Next Story

GoTo admits: Customer cloud backups stolen together with decryption key