View topic - Priority message ques in qnx

Priority message ques in qnx

General Help about QNX

Priority message ques in qnx

Postby madhav.agarwal » Tue Sep 29, 2009 10:15 am

Hello,

Could anyone please tell me whether i have priority message queues in qnx...

if yes how can i use it?

Thnaks
madhav.agarwal
Active Member
 
Posts: 23
Joined: Wed Jul 15, 2009 4:52 am

Postby Tim » Tue Sep 29, 2009 12:58 pm

There are no QNX native priority message queues (ie the ability to store several messages in a queue).

There are priority messages in QNX. But processes/threads must deal with them in a manner of their choosing (which could be to store in an internal queue if you so desire and are running multi threaded).

There is also the Posix based message system mqueue which does have message queues. I can't remember if mqueue allows priorities or not.

Tim
Tim
Senior Member
 
Posts: 1511
Joined: Wed Mar 10, 2004 12:28 am

Postby davidk2 » Tue Sep 29, 2009 3:55 pm

I think there is a priority for the posix mqueue system.

I'm not 100% familiar but looking at the documentation for the mq_send function there is a priority parameter"msg_prio".

Look here for more info:

http://www.opengroup.org/onlinepubs/009 ... _send.html

David
davidk2
Active Member
 
Posts: 46
Joined: Mon Mar 03, 2008 4:06 pm

Postby madhav.agarwal » Wed Sep 30, 2009 6:09 am

Hi....
thanks a lot...yes i have checked mq_send and there is a parameter as msg_prio....
so my problem is solved using that...
madhav.agarwal
Active Member
 
Posts: 23
Joined: Wed Jul 15, 2009 4:52 am


Return to Help

Who is online

Users browsing this forum: No registered users and 1 guest