Skip to content

Instantly share code, notes, and snippets.

@astromechza
astromechza / cpueater.java
Last active January 4, 2023 09:58
Simple java program for running multi-threaded cpu stress test.
import java.util.ArrayList;
import java.util.List;
import java.util.Random;
import java.util.concurrent.atomic.LongAdder;
public class Main
{
public static void main(String[] args) throws InterruptedException
{
if (args.length != 1)