From 7a362b5af3b875b174574df80f90c252dad80a10 Mon Sep 17 00:00:00 2001 From: hwf452 Date: Sun, 30 Nov 2025 11:14:49 +0800 Subject: [PATCH] add full cpu --- .idea/workspace.xml | 113 -------------------------------------------- FullCpu.go | 17 +++++++ 2 files changed, 17 insertions(+), 113 deletions(-) delete mode 100755 .idea/workspace.xml create mode 100644 FullCpu.go diff --git a/.idea/workspace.xml b/.idea/workspace.xml deleted file mode 100755 index c04dd59..0000000 --- a/.idea/workspace.xml +++ /dev/null @@ -1,113 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - true - - \ No newline at end of file diff --git a/FullCpu.go b/FullCpu.go new file mode 100644 index 0000000..26738cf --- /dev/null +++ b/FullCpu.go @@ -0,0 +1,17 @@ +package main + +import "time" + +func test_print(a int) { + for { + + } +} + + +func main() { + for i := 0; i < 100; i++ { + go test_print(i) + } + time.Sleep(360000000*time.Second) +}