aboutsummaryrefslogtreecommitdiff
path: root/tests/create-exhaustion
diff options
context:
space:
mode:
authorKimplul <kimi.h.kuparinen@gmail.com>2024-11-01 10:12:02 +0200
committerKimplul <kimi.h.kuparinen@gmail.com>2024-11-01 10:28:16 +0200
commit8100eef0826e7fb182434979a9b139716b3637e1 (patch)
tree991324108d849a9bc825528fbba38fb4a887cd11 /tests/create-exhaustion
parent9914b44878ca52cc615d2f4e47fec400dd55ab76 (diff)
downloadkmi-8100eef0826e7fb182434979a9b139716b3637e1.tar.gz
kmi-8100eef0826e7fb182434979a9b139716b3637e1.zip
speed up creating threads quite a bit
Diffstat (limited to 'tests/create-exhaustion')
-rw-r--r--tests/create-exhaustion/init.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/create-exhaustion/init.c b/tests/create-exhaustion/init.c
index d5ac20a..8fc9b1f 100644
--- a/tests/create-exhaustion/init.c
+++ b/tests/create-exhaustion/init.c
@@ -10,8 +10,9 @@ START(pid, tid, d0, d1, d2, d3)
UNUSED(d3);
size_t old_ram = 0;
+ int count = 0;
while (1) {
- printf("creating new thread\n");
+ printf("creating new thread %d\n", count++);
id_t new_thread = sys_create((uintptr_t)_start, 1, 2, 3, 4);
if (new_thread < 0)
break;