home *** CD-ROM | disk | FTP | other *** search
- Xref: sparky comp.unix.internals:2159 comp.unix.wizards:5642 comp.sys.sun.misc:6473
- Newsgroups: comp.unix.internals,comp.unix.wizards,comp.sys.sun.misc
- Path: sparky!uunet!zaphod.mps.ohio-state.edu!caen!uvaarpa!murdoch!uvacs.cs.Virginia.EDU!jrm2k
- From: jrm2k@uvacs.cs.Virginia.EDU (Jeff Michel)
- Subject: lwp (threads) in SunOS kernel
- Message-ID: <1993Jan25.032813.10434@murdoch.acc.Virginia.EDU>
- Keywords: lwp, threads, SunOS, kernel
- Sender: usenet@murdoch.acc.Virginia.EDU
- Organization: University of Virginia Computer Science Department
- Date: Mon, 25 Jan 1993 03:28:13 GMT
- Lines: 24
-
- To all those familiar with the lightweight processes library for SunOS:
-
- We are running SunOS 4.1.1 and believe that this version of the OS may provide
- support for lightweight processes (threads) in the kernel and not just for user
- processes. (Our SunOS manual, dated 1990, gives no impression of kernel support,
- however we have reason to suspect it.)
-
- That is, in addition to the lightweight processes library (-llwp) provided for
- users, there *appears* to be support for *kernel* threads. Perhaps this is in
- order to support multiple asynchronous I/O operations and the like. We seem
- to have object code in /usr/sys/sun4/OBJ which provides some lwp primitives.
- In fact, we have even been so shocked as to have a "hello world" thread run
- successfully in kernel mode.
-
- 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)
-