select() / WaitForMultipleObjects() -type functionality?

gregory.menke at gsfc.nasa.gov gregory.menke at gsfc.nasa.gov
Mon Apr 28 15:24:00 UTC 2003


Jason Hinze writes:
 > Hello,
 > 
 > 
 > Specifically, I'd like to be able to have a task wait for a message to 
 > be received on any of a number of message queues.  If a message arrives 
 > on any one of the queues, RTEMS would wake the task and deliver the 
 > message.
 > 
 > Of course, I could get this behavior through some combination of 
 > polling and timers or having message senders explicitly wake receivers, 
 > but I'm trying to use the OS to abstract this overhead and/or machinery 
 > out of my application.

I think this problem will boil down to polling by some task or
another, or having one mini task per queue that can wake up a "client"
task via an event.  Its probably a better idea to funnel all the
senders thru a single queue.

Gregm





More information about the users mailing list