com (pkk) writes:
By user-level threads people usually mean threads package implemented
completely in the user space (the kernel is unaware of the existance
of any threads). AIX standard threads are *not at all* like that.
The picture on linux is quite a bit more complicated than what your
statement above implies, and also changes depending on whether you
are talking about LinuxThreads or NPTL.
If OS has no knowledge of threads (i.e. you have user-level
threads), then the threads library has to act as a scheduler
(nobody else knows threads exist at all).
That is not what happens on AIX or Linux (with default threads
No, it is not any different from NT: with M:M the kernel knows
about every thread in your process.
Yes: there is only 1 kernel thread, so at most 1 thread can ever run.
The kernel can only schedule things it knows about, and the only
things it knows about are kernel threads. So yes on AIX and on NT.
Huh? Where did you get this from?
I don't think AIX kernel ever calls into user-mode.
On NT the kernel calls into user-mode all the time -- when you
create a Window Class, you register a WindowProc, which the kernel
will call when/if events are posted to your window.
In order to understand recursion you must first understand recursion.
Remove /-nsp/ for email.