From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f678f,8e9b885446835ab4 X-Google-Attributes: gidf678f,public X-Google-ArrivalTime: 1994-11-15 14:09:11 PST Path: nntp.gmd.de!xlink.net!howland.reston.ans.net!news.sprintlink.net!sundog.tiac.net!max.tiac.net!lehotsky From: lehotsky@max.tiac.net (Alan Lehotsky) Newsgroups: comp.unix.osf.misc Subject: Re: errno and DCE and threads Date: 15 Nov 1994 21:40:55 GMT Organization: The Internet Access Company Message-ID: <3ab9t7$aqr@sundog.tiac.net> References: <39lsjk$lrf@clam.hi.com> <39qin9$9g6@paperboy.osf.org> <3aa1mo$6b8@mail.fwi.uva.nl> <3aao5n$94n@paperboy.osf.org> NNTP-Posting-Host: max.tiac.net In article <3aao5n$94n@paperboy.osf.org>, Rich Salz wrote: >In <3aa1mo$6b8@mail.fwi.uva.nl> casper@fwi.uva.nl (Casper H.S. Dik) writes: >>>For kernel threads, the kernel should just be doing the right thing. >> >>How can a the kernel do this? If errno is a statica variable, >>the kernel cannot move it about in a transparent way. > >Sure it can. Each thread has its own errno, and the kernel need only >switch those values into and out of the processes global errno variable >each time it context switches a thread. > >A simple matter of programming. > /r$ Ahh, Rich. Take a look at how most OS's fill in errno. It requires in-process code to store values into errno. The kernel is clueless about where errno is. If you have real kernel threads, you'd have to put part of the context switch into user space. This results in less than SMOP. Of course, since it _is_ software, it's not impossible. -- Al Lehotsky ====================================================================== Quality Software Management 8 Tucker Ave. Lexington, MA 02173 lehotsky@tiac.net Voice: (617)862-5418 Fax: (617)674-1096 Software Process Improvement and Management Consulting