Hi 0
I have Wisio project on Linux where are multiple processes.
Processes are comminicating with each other by msgsnd/msgrcv
IPC commands. Queue is read by one process but many processes
may write to queue.
Now I have timing problems because sometimes queues becaming
full. This is solved by putting process to sleep when written
can not be made and wait for queue processing. This will
cause lose of efficient or even death locks.
One solution would be to send messages with another method, by
pipes etc, but is there way to get this work, because using
IPC queues is quite easy to manage.
Other solution would be to find out how many messages is in queue before
sending new messages.
With msgctl command I have now only command to get maximum of messages!
IS THERE ANY WAY TO GET CURRENT NUMBER OF MESSAGES IN QUEUE??