> 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.
This is not true, at least on Linux. With appropriate settings (e.g. a small stack) thread creation can be extremely cheap.