cosmopolitan/libc/system
Justine Tunney 624573207e
Make threads faster and more reliable
This change doubles the performance of thread spawning. That's thanks to
our new stack manager, which allows us to avoid zeroing stacks. It gives
us 15µs spawns rather than 30µs spawns on Linux. Also, pthread_exit() is
faster now, since it doesn't need to acquire the pthread GIL. On NetBSD,
that helps us avoid allocating too many semaphores. Even if that happens
we're now able to survive semaphores running out and even memory running
out, when allocating *NSYNC waiter objects. I found a lot more rare bugs
in the POSIX threads runtime that could cause things to crash, if you've
got dozens of threads all spawning and joining dozens of threads. I want
cosmo to be world class production worthy for 2025 so happy holidays all
2024-12-21 22:13:00 -08:00
..
BUILD.mk Strongly link tr and sed into system() and popen() 2024-11-15 21:23:49 -08:00
cocmd.c Strongly link tr and sed into system() and popen() 2024-11-15 21:23:49 -08:00
fleaks.c Strongly link glob() into system() and popen() 2024-11-15 20:37:34 -08:00
pclose.c Eliminate cyclic locks in runtime 2024-12-16 22:25:12 -08:00
popen.c Make threads faster and more reliable 2024-12-21 22:13:00 -08:00
system.c Strongly link tr and sed into system() and popen() 2024-11-15 21:23:49 -08:00
systemvpe.c Strongly link glob() into system() and popen() 2024-11-15 20:37:34 -08:00