* DECthreads : What purpose libmach.so?
@ 1997-09-28 4:00 Chan Shih-Ping
1997-09-30 4:00 ` Dave Butenhof
0 siblings, 1 reply; 2+ messages in thread
From: Chan Shih-Ping @ 1997-09-28 4:00 UTC (permalink / raw)
Can anyone explain what the routines in libmach.so do for
threaded programs. Compiling with cc -pthread pulls
in libpthread.so as well as libmach.so and libexc.so
I guess libexc.so is for exceptions but what about
the stuff in libmach.so (the mach kernel??) like
thread_create etc.
Any enlightenment?
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: DECthreads : What purpose libmach.so?
1997-09-28 4:00 DECthreads : What purpose libmach.so? Chan Shih-Ping
@ 1997-09-30 4:00 ` Dave Butenhof
0 siblings, 0 replies; 2+ messages in thread
From: Dave Butenhof @ 1997-09-30 4:00 UTC (permalink / raw)
Chan Shih-Ping wrote:
>
> Can anyone explain what the routines in libmach.so do for
> threaded programs. Compiling with cc -pthread pulls
> in libpthread.so as well as libmach.so and libexc.so
Those are libraries required for the threading environment.
> I guess libexc.so is for exceptions but what about
> the stuff in libmach.so (the mach kernel??) like
> thread_create etc.
In particular, yes, libexc provides the standard mechanism for dealing
with exceptions. For a lot of reasons, (including, for example, smooth
integration with languages like Ada and C++ that support exceptions),
POSIX cancellation and pthread_exit are implemented using the native
exception mechanism.
libmach provides the interfaces to the Mach kernel functions. We use
them to create and control kernel threads. In the future we'll be
dropping libmach, as we replace the general Mach interfaces with new
interfaces more specific to our needs -- but of course it won't hurt to
include libmach anyway.
/---------------------------[ Dave Butenhof ]--------------------------\
| Digital Equipment Corporation butenhof@zko.dec.com |
| 110 Spit Brook Rd ZKO2-3/Q18 http://members.aol.com/drbutenhof |
| Nashua NH 03062-2698 http://www.awl.com/cp/butenhof/posix.html |
\-----------------[ Better Living Through Concurrency ]----------------/
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~1997-09-30 4:00 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1997-09-28 4:00 DECthreads : What purpose libmach.so? Chan Shih-Ping
1997-09-30 4:00 ` Dave Butenhof
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox