From: lehotsky@max.tiac.net (Alan Lehotsky)
Subject: Re: errno and DCE and threads
Date: 15 Nov 1994 21:40:55 GMT [thread overview]
Message-ID: <3ab9t7$aqr@sundog.tiac.net> (raw)
In-Reply-To: 3aao5n$94n@paperboy.osf.org
In article <3aao5n$94n@paperboy.osf.org>, Rich Salz <rsalz@osf.org> 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
next prev parent reply other threads:[~1994-11-15 21:40 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
1994-11-07 18:45 errno and DCE and threads David Wright
1994-11-07 20:14 ` Alan Lehotsky
1994-11-08 15:42 ` Andrew Hastings
1994-11-08 21:35 ` Simon Patience
1994-11-09 20:05 ` Andrew Hastings
1994-11-09 13:27 ` Rich Salz
1994-11-15 10:14 ` Casper H.S. Dik
1994-11-15 16:38 ` Rich Salz
1994-11-15 21:19 ` Casper H.S. Dik
1994-11-15 21:40 ` Alan Lehotsky [this message]
1994-11-15 22:09 ` Spike White
1994-11-17 17:09 ` Alan Deehr
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox