Usenet comp.unix.osf.misc (1992-2004)
 help / color / mirror / Atom feed
From: mishkin@atria.com (Nathaniel Mishkin)
Subject: Re: Threads and shared memory
Date: Fri, 17 Sep 1993 20:02:49 GMT	[thread overview]
Message-ID: <CDIL0p.C8E@atria.com> (raw)
In-Reply-To: 27co6m$qsg@liege.ics.uci.edu

Douglas C. Schmidt (schmidt@liege.ics.uci.edu) wrote:
: 	As far as I know, poll() in SVR4 can basically wait for the
: same class of descriptors that select() 

Guess I'm a bit out of date in this area.

: Unfortunately, WaitForMultipleObjects isn't quite as useful as
: select() or poll() since it only reports 1 object of the set of n
: objects when it returns 

As long as WaitForMultipleObjects() is reasonably fast when one of the
objects is signalled, I guess I wouldn't worry about this difference
from select().

: Moreover, it remains unclear whether
: sockets fit into the WaitForMultipleObjects paradigm.  If they
: *don't*, then we're basically back to the UNIX morass again...

Yes, that would be bad, but fortunately, I think Winsock SOCKETs are
really Win32 HANDLEs and can be used in the Wait... calls the way
you'd want.  Note that MS's hands were a bit tied here by the fact
that they're trying to implement a "standard" API in this case (i.e.,
Winsock) and in doing so one runs the risk that it won't fit in with
one's other APIs as well as one would like.  (Of course they
participated in the Winsock design, so...)  But they have a pretty
reasonable track record here; consider the (what I thought to be the
amusingly named, considering the newsgroup we're in) get_osfhandle()
and open_osfhandle() calls that can be used to map between "file
descriptors" and "OS handles" (HANDLEs in the Win16 and Win32 APIs).
--
                -- Nat Mishkin
                   Atria Software, Inc.
                   mishkin@atria.com


  reply	other threads:[~1993-09-17 20:02 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1993-09-16  9:36 Threads and shared memory Bruno.Richoux        
1993-09-17 13:58 ` Nathaniel Mishkin
1993-09-17 13:44   ` David Wright
1993-09-17 16:05   ` Andrew Hastings
1993-09-17 16:21   ` Douglas C. Schmidt
1993-09-17 20:02     ` Nathaniel Mishkin [this message]
1993-09-18 18:21       ` Douglas C. Schmidt
1993-09-19 23:12         ` Dave Weisman
1993-09-22 20:07           ` Brian Sturgill
1993-09-23  1:20             ` Douglas C. Schmidt
1993-09-23 13:09               ` Nathaniel Mishkin
1993-09-27 13:54               ` George J. Carrette
1993-09-17 14:48 ` Dave McCracken
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