home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / sys / sun / misc / 6495 < prev    next >
Encoding:
Internet Message Format  |  1993-01-25  |  1.9 KB

  1. Xref: sparky comp.sys.sun.misc:6495 comp.unix.internals:2167 comp.unix.wizards:5648
  2. Newsgroups: comp.sys.sun.misc,comp.unix.internals,comp.unix.wizards
  3. Path: sparky!uunet!gatech!hubcap!ncrcae!grok101.ColumbiaSC.NCR.COM!raj
  4. From: raj@grok101.ColumbiaSC.NCR.COM (Raj Gopalakrishna)
  5. Subject: Re: lwp (threads) in SunOS kernel
  6. Message-ID: <1993Jan25.135053.25129@ncrcae.ColumbiaSC.NCR.COM>
  7. Keywords: lwp, threads, SunOS, kernel
  8. Nntp-Posting-Host: grok101.columbiasc.ncr.com
  9. Organization: Your Organization Here
  10. References: <1993Jan25.032813.10434@murdoch.acc.Virginia.EDU>
  11. Date: Mon, 25 Jan 93 18:50:53 GMT
  12. Lines: 29
  13.  
  14. In article <1993Jan25.032813.10434@murdoch.acc.Virginia.EDU>, jrm2k@uvacs.cs.Virginia.EDU (Jeff Michel) writes:
  15. |>  
  16. |> A slew of questions come to mind:
  17. |> Is this all a fluke?  Is there support (eg. a manual or commented header
  18. |> file) for using threads in the kernel?  What differences exist between the
  19. |> threads at the kernel level and at the user level?  Is it safe to use kernel
  20. |> threads in a device driver?
  21. |> 
  22. |> Any help would be greatly appreciated.  Thanks.
  23. |> 
  24. |> -- 
  25. |> Jeff Michel  (jrm2k@Virginia.EDU)
  26.  
  27.     Though I don't know much about Sun OS, I have read articles in mags
  28. about lwp of Sun. If I remember correct lwp is implemented totally outside
  29. the kernel. There is no kernel support & hence the "threads" are not
  30. truely "threads" in the traditional sense.
  31.     
  32.     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
  33. threads and these can be used in device drivers etc. Infact, when I 
  34. implemented Streams on LynxOS, I used a kernel thread for the Streams
  35. Schedular !!
  36.     The user-level threads are typically used by database servers.
  37. I believe Sybase & Ingress both use "threads" to provide client-server
  38. architecture, the details of which may not necessary for the current
  39. discussion!!
  40.  
  41. -raj
  42.  
  43.