Is a mqd_t of a POSIX-MQ a critical resource?

32 Views Asked by At

I need to send messages through same Posix-MQ in multiple threads.

These threads all act as a "producer" of messages, while the "consumer" is another process.

Should I do mq_open for every threads respectively and use different mqd_t in different threads?

Or I can mq_open once, and use the same mqd_t in all threads?

0

There are 0 best solutions below