added fork creation under the same pid

This commit is contained in:
2026-05-25 16:02:59 +03:00
parent 88b74819b1
commit e08467972d
+8 -1
View File
@@ -156,9 +156,16 @@ compile_thread_stress() {
"$ROOT_DIR/thread_stress_test/thread_stress.c" "$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_creation_time
compile_fork_bomb compile_fork_bomb
compile_thread_stress compile_thread_stress
compile_thread_recursive
# Defaults (override by env vars) # Defaults (override by env vars)
ALLOW_DANGEROUS=${ALLOW_DANGEROUS:-0} ALLOW_DANGEROUS=${ALLOW_DANGEROUS:-0}
@@ -196,7 +203,7 @@ fi
run_with_sampling \ run_with_sampling \
"thread_recursive_scaling" \ "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" \ "$OUT_DIR/thread_recursive_scaling.csv" \
0 0