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

  1. Xref: sparky comp.unix.internals:2159 comp.unix.wizards:5642 comp.sys.sun.misc:6473
  2. Newsgroups: comp.unix.internals,comp.unix.wizards,comp.sys.sun.misc
  3. Path: sparky!uunet!zaphod.mps.ohio-state.edu!caen!uvaarpa!murdoch!uvacs.cs.Virginia.EDU!jrm2k
  4. From: jrm2k@uvacs.cs.Virginia.EDU (Jeff Michel)
  5. Subject: lwp (threads) in SunOS kernel
  6. Message-ID: <1993Jan25.032813.10434@murdoch.acc.Virginia.EDU>
  7. Keywords: lwp, threads, SunOS, kernel
  8. Sender: usenet@murdoch.acc.Virginia.EDU
  9. Organization: University of Virginia Computer Science Department
  10. Date: Mon, 25 Jan 1993 03:28:13 GMT
  11. Lines: 24
  12.  
  13. To all those familiar with the lightweight processes library for SunOS:
  14.  
  15. We are running SunOS 4.1.1 and believe that this version of the OS may provide
  16. support for lightweight processes (threads) in the kernel and not just for user
  17. processes.  (Our SunOS manual, dated 1990, gives no impression of kernel support,
  18. however we have reason to suspect it.)
  19.  
  20. That is, in addition to the lightweight processes library (-llwp) provided for
  21. users, there *appears* to be support for *kernel* threads.  Perhaps this is in
  22. order to support multiple asynchronous I/O operations and the like.  We seem
  23. to have object code in /usr/sys/sun4/OBJ which provides some lwp primitives.
  24. In fact, we have even been so shocked as to have a "hello world" thread run
  25. successfully in kernel mode.
  26.  
  27. A slew of questions come to mind:
  28. Is this all a fluke?  Is there support (eg. a manual or commented header
  29. file) for using threads in the kernel?  What differences exist between the
  30. threads at the kernel level and at the user level?  Is it safe to use kernel
  31. threads in a device driver?
  32.  
  33. Any help would be greatly appreciated.  Thanks.
  34.  
  35. -- 
  36. Jeff Michel  (jrm2k@Virginia.EDU)
  37.