From e08467972d577913aef28ff1bcff6778b0b303e0 Mon Sep 17 00:00:00 2001 From: andreastaliad Date: Mon, 25 May 2026 16:02:59 +0300 Subject: [PATCH] added fork creation under the same pid --- run_all_experiments.sh | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/run_all_experiments.sh b/run_all_experiments.sh index ade97da..1bcce96 100644 --- a/run_all_experiments.sh +++ b/run_all_experiments.sh @@ -156,9 +156,16 @@ compile_thread_stress() { "$ROOT_DIR/thread_stress_test/thread_stress.c" } +compile_thread_recursive() { + log "Compiling thread_recursive" + gcc -O2 -pthread -o "$ROOT_DIR/thread_recursive_scaling/thread_recursive" \ + "$ROOT_DIR/thread_recursive_scaling/thread_recursive.c" -lm +} + compile_creation_time compile_fork_bomb compile_thread_stress +compile_thread_recursive # Defaults (override by env vars) ALLOW_DANGEROUS=${ALLOW_DANGEROUS:-0} @@ -196,7 +203,7 @@ fi run_with_sampling \ "thread_recursive_scaling" \ - "cd '$ROOT_DIR/thread_recursive_scaling' && ./run_thread_recursive.sh 6 6 6" \ + "cd '$ROOT_DIR/thread_recursive_scaling' && exec ./thread_recursive -b 6 -d 6 -s 6" \ "$OUT_DIR/thread_recursive_scaling.csv" \ 0