Message passing between kernel threads using message queues

From: Lawrie Kurian (lawrie.kurian_at_gmail.com)
Date: 04/25/05


Date: 24 Apr 2005 23:08:53 -0700

Hi,
We have 2 kernel threads running. One thread1 needs to send some
information to the other thread2. The thread1 needs to update some the
part of the data in thread2 which is locked most of the time, by
thread2. So if thread1 happens to wait for the lock to be released by
thread2, it would take up lot of time.

Is there a way of passing messages between the kernel threads, through
message queues? If yes, can you please mention the interfaces, if no,
kindly suggest a solution for the above problem.

Thanks.
Lawrie.



Relevant Pages