Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> Creating a thread is already very expensive, in a sane program your ten TLS constructors shouldn't come even close to the amount of bookkeeping that the kernel has to do to spin up a new thread.

This is not true, at least on Linux. With appropriate settings (e.g. a small stack) thread creation can be extremely cheap.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: