In article <2026…@yahoo.com>, Michael S <alre…@yahoo.com> wrote:
>On Sun, 25 Oct 2026 00:28:19 -0000 (UTC) >cro…@spitfire.i.gajendra.net (Dan Cross) wrote:
>> In article <2026…@yahoo.com>, >> Michael S <alre…@yahoo.com> wrote:
>> >[snip] >> >Second, while in theory threads can be implemented by C++ >> >compilers+language support library, in practice I had never seen it >> >done.
>> >> This is not saying much about anything aside from the countours >> of your own experience, I'm afraid.
(This statement remains true.)
>[snip history showing a long line of "OS Threads" implemented > as a library] > >How any of this trivia has anything to do with real-world >implementations of C++11 threads?
Your statement, "while in theory threads can be implemented by C++ compilers+language support library, in practice I had never seen it done" is probably strictly true: you, individually, have never seen it done. But that does not imply that it has never been done. In fact, it has; many times over. There are complications, but it can be done. That is what I was telling you, supported by examples. The thread models adopted by both C and C++ are based on all of that prior art.
>I mentioned that in one of my earlier responses to boltar. >However there exist situation in which system() is not a satisfactory >replacement for spawn(), most often because overhead of launching shell >sometimes matters.
Let me reiterate the questions above: what do you think that a thread is? What do you think that a process is? And let me add to that, what do you think that a "shell" is? - Dan C.