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