diff options
| author | Kimplul <kimi.h.kuparinen@gmail.com> | 2024-11-01 10:12:02 +0200 |
|---|---|---|
| committer | Kimplul <kimi.h.kuparinen@gmail.com> | 2024-11-01 10:28:16 +0200 |
| commit | 8100eef0826e7fb182434979a9b139716b3637e1 (patch) | |
| tree | 991324108d849a9bc825528fbba38fb4a887cd11 /tests/create-exhaustion | |
| parent | 9914b44878ca52cc615d2f4e47fec400dd55ab76 (diff) | |
| download | kmi-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.c | 3 |
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; |
