An equivalent of select() but for message queues?

Victor Kan kan at dg-rtp.dg.com
Fri Dec 29 12:41:18 AEST 1989


Does anyone know if there's a Unix system call that's analogous 
to select() but works on message queues rather than file descriptors?

Basically, I want to have a high resolution time out mechanism for 
msgrcv() rather than just blocking until a message of the right type 
comes in, or polling.  I know I can kludge it with alarm signals or 
select() on a dummy file descriptor with a timeout value, but I'd 
prefer to avoid this.

It seems like such an obvious feature; how do non-Unix OS's do this, 
if at all?  Any Mach, QNX or other message based systems users out 
there with the answer?

Please reply by e-mail and I'll summarize to comp.unix.questions.

kan at dg-rtp.dg.com or ...!mcnc!rti!xyzzy!kan should work.

Thanks for any info!

| Victor Kan               | I speak only for myself.               |  ***
| Data General Corporation | Edito cum Emacs, ergo sum.             | ****
| 62 T.W. Alexander Drive  | Columbia Lions Win, 9 October 1988 for | **** %%%%
| RTP, NC  27709           | a record of 1-44.  Way to go, Lions!   |  *** %%%



More information about the Comp.unix.questions mailing list