I'm programming with the embedded device running Linux, where memory is less, I just have 64MB flash only. I planned to use queues for the thread communication.
In which I came across with using POSIX queue or just use the simple queue.
Actually, my need is I don't want the queue to be priority driven. I want to know the pros and cons of POSIX queue then I'll have a good picture
I'm wondering what's the best-optimised way using
POSIX queue or just simple queue to my situation?
First thread does
HTTP POST and Second thread does
HTTP GET. These two threads need to communicate when the data is written or get.
I read that POSIX queue uses Linux kernel, in that case, it has more overhead than using own data structure queue?
In other words, lightweight IPC, something like unidirectional pipes for thread communication instead of POSIX queue but don't know the real advantage of POSIX queue.
EDIT: I just have 512MB RAM in my embedded device.