home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / unix / internal / 2164 < prev    next >
Encoding:
Internet Message Format  |  1993-01-25  |  2.0 KB

  1. Xref: sparky comp.unix.internals:2164 comp.unix.wizards:5646 comp.sys.sun.misc:6489
  2. Newsgroups: comp.unix.internals,comp.unix.wizards,comp.sys.sun.misc
  3. Path: sparky!uunet!europa.asd.contel.com!gatech!mailer.cc.fsu.edu!delta!mueller
  4. From: mueller@delta.cs.fsu.edu (Frank Mueller)
  5. Subject: Re: lwp (threads) in SunOS kernel
  6. Message-ID: <1993Jan25.175447.6244@mailer.cc.fsu.edu>
  7. Keywords: lwp, threads, SunOS, kernel
  8. Sender: mueller@delta (Frank Mueller)
  9. Nntp-Posting-Host: delta.cs.fsu.edu
  10. Organization: Florida State University Computer Science
  11. References: <1993Jan25.032813.10434@murdoch.acc.Virginia.EDU> <1993Jan25.155627.15411@cbnews.cb.att.com>
  12. Date: Mon, 25 Jan 93 17:54:47 GMT
  13. Lines: 27
  14.  
  15. In article <1993Jan25.155627.15411@cbnews.cb.att.com>, adh@cbnews.cb.att.com (andrew.d.hay) writes:
  16. > jrm2k@uvacs.cs.Virginia.EDU (Jeff Michel) writes:
  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. > i was told [apropos my q. is lwp in the sunos5 compat lib] that *no*
  22. > special kernel resources were added to support lwp; it's all in the
  23. > standard c lib.
  24.  
  25. But there is a compile flag to configure a SunOS kernel which supports lwp's.
  26. In fact, when you look at some of the OS sources, you will notice that the
  27. kernel differs in some places if lwp's are supported.
  28.  
  29. There might even be threads at the kernel level. Consider this: Asynchronous I/O
  30. via aread() and awrite() is only supported when lwp's are supported by the
  31. kernel as well. This leads me to believe that lwp's are used to implement
  32. asynchr. I/O. This doesn't surprise, in fact, that's what threads are for besides
  33. other things. Now, maybe one could write kernel threads under SunOS 4.1 similar
  34. to asynchr. I/O...
  35.  
  36. Of course, you can try to migrate to SunOS 5.x where threads are in the kernel.
  37. If you can get the OS installed, that is.
  38.  
  39. Frank
  40. mueller@cs.fsu.edu
  41.