When using POSIX message queues, I noticed that several files were created on the file system with the name I created the queues. My questions:
Q1. Do message queues queue messages on the hard drive, not RAM?
Q2. If so, shouldn't it be very slow to implement as it includes HardDisk?
Edit:
I read this in the book "Linux Programming Interface" :
On Linux, POSIX message queues are implemented as i-nodes in a virtual file system, and message queue descriptors and descriptions of open message queues are implemented as file descriptors and descriptions of open files, respectively. However, these are implementation details that are not required by SUSv3 and are not implemented on some other UNIX implementations.
Even if it is VFS, it is still stored on the hard drive, right?
With this information in mind, can anyone comment on the second question now? (and / or First also, if there is something to add)
source share