From 009c236ecdd4068243573a1860e968226ec3b52c Mon Sep 17 00:00:00 2001 From: rintyuu Date: Sat, 30 Mar 2024 00:46:46 -0700 Subject: [PATCH] Delete primed.sh --- primed.sh | 20 -------------------- 1 file changed, 20 deletions(-) delete mode 100644 primed.sh diff --git a/primed.sh b/primed.sh deleted file mode 100644 index 56c9d73..0000000 --- a/primed.sh +++ /dev/null @@ -1,20 +0,0 @@ -#!/bin/bash - -# Number of CPU-intensive tasks to run -num_tasks=4 - -# Function to perform CPU-intensive calculations -perform_calculations() { - while true; do - result=$(echo "scale=10000; 4*a(1)" | bc -l) - result=$(echo "scale=10000; sqrt($result^2)" | bc -l) - done -} - -# Run multiple CPU-intensive tasks in parallel -for ((i = 0; i < num_tasks; i++)); do - perform_calculations & -done - -# Wait for all tasks to complete -wait