On 10/30/2026 4:25 AM, bolt…@caprica.universe wrote:
> On Thu, 29 Oct 2026 22:39:22 +0200 > Michael S <alre…@yahoo.com> gabbled:
>> On Thu, 29 Oct 2026 16:22:29 -0000 (UTC) >> bolt…@caprica.universe wrote: >>
>>> On Thu, 29 Oct 2026 00:06:45 +0200 >>> Michael S <alre…@yahoo.com> gabbled:
>>>> On Wed, 28 Oct 2026 08:58:55 -0000 (UTC) >>>> bolt…@caprica.universe wrote:
>>>>> And unix got pthreads in 1995. Windows a decade late as usual. >>>>>
>>>> >>>> That's like if I'd say that Linux is 33 years (and counting) late >>>> because it has no QueueUserAPC(). Of course, I am smarter than saying >>>> such nonsense. >>>> >>>> More relevantly, Windows (Win32) has preemptive kernel-scheduled >>>> threads >>>> + assortment of synchronization primitives since very beginning >>>> (1993) >>>> - ahead of many Unixen and behind some of them. Certainly ahead of >>>> Posix standardisation of threads.
>>> >>> Wow, pre-emptive multitasking in 1993. Incredible technology! >>>
>> >> Not just preemptive multitasking between processes, but >> kernel-scheduled threads within each process as well. >> Not a novel idea, but the one that eventually won over all others. >> In 1993 it was already obvious that it is going to win, but in >> 1988-1989, when development started, it was less trivial.
> > Implementing threads is trivial compared to implementing multi processes with > shared memory. Adding them to a pre-existing kernel might be tricky but when > you're building one from scratch as per NT then its hardly a big deal. >
Multi process with shared memory can be tricky indeed. Step one, you need to ponder on making it "robust". Threads do not need to be robust. Well, you should not have a thread up and die anyway. Now, for multi process, that should be handled. There are many different ways.