In article <1993Jan25.032813.10434@murdoch.acc.Virginia.EDU>, jrm2k@uvacs.cs.Virginia.EDU (Jeff Michel) writes:
|>
|> A slew of questions come to mind:
|> Is this all a fluke? Is there support (eg. a manual or commented header
|> file) for using threads in the kernel? What differences exist between the
|> threads at the kernel level and at the user level? Is it safe to use kernel
|> threads in a device driver?
|>
|> Any help would be greatly appreciated. Thanks.
|>
|> --
|> Jeff Michel (jrm2k@Virginia.EDU)
Though I don't know much about Sun OS, I have read articles in mags
about lwp of Sun. If I remember correct lwp is implemented totally outside
the kernel. There is no kernel support & hence the "threads" are not
truely "threads" in the traditional sense.
There are some OS like LynxOS which provide both kernel & user-level threads. The user-level threads are implemented as per the specifications of Posix i.e. "pthreads". Lynx also supports kernel
threads and these can be used in device drivers etc. Infact, when I
implemented Streams on LynxOS, I used a kernel thread for the Streams
Schedular !!
The user-level threads are typically used by database servers.
I believe Sybase & Ingress both use "threads" to provide client-server
architecture, the details of which may not necessary for the current