3 ms·
That works if you are the application, or a framework that is in control of all thread creation. If you are just trying to be a thread-safe library though, you
by haberman 12y ago
That works if you are the application, or a framework that is in control of all thread creation.
If you are just trying to be a thread-safe library though, you aren't at liberty to do that. For example, say someone wrote a thread-safe stack, like the article author. As the user of that thread-safe, lock-free stack, you don't want to put it in charge of all your threading, it's just one little library you're using.