Hi Jacob,
Hi LAD members,
On Mon, Jul 07, 2003 at 04:50:45PM -0600, jacob robbins
wrote:
> deadlock. You forgot to mention one other method for achieving this
> communication; System V ipc messages, which i prefer because they don't
> lock (if used right) and they are simple. See the man pages for msgget,
> msgsnd, msgrcv.
What do you mean by "if used right"?
It's pretty simple: The realtime thread must always try to get
messages in non-blocking mode.
Meanwhile, the UI thread blocks waiting for the receipt of a different
message from the realtime thread indicating that the requested issue has
been handled. Of course the issues must be carefully constructed so that
the realtime thread can handle them without allocating any memory or
doing too many long loops.
-jacob robbins.....