Hi,
I note in the Sender class there is a variable "_wq". What is the role of this variable? And in the IPC, we set it to the sender_list of receiver. Why?
Thank you. Yuxin
On Thu Jul 10, 2014 at 14:20:20 -0400, Yuxin Ren wrote:
I note in the Sender class there is a variable "_wq". What is the role of this variable? And in the IPC, we set it to the sender_list of receiver. Why?
wq is short for wait-queue and it is used during IPC to connect sender and receiver. The queue is prio sorted so that IPCs happen according to their prio.
Adam
This makes sense. However I think the receiver needs this queue to save senders who want to talk to it. So why does sender still need this "_wq"?
Thank you.
On Mon, Jul 14, 2014 at 5:06 PM, Adam Lackorzynski < adam@os.inf.tu-dresden.de> wrote:
On Thu Jul 10, 2014 at 14:20:20 -0400, Yuxin Ren wrote:
I note in the Sender class there is a variable "_wq". What is the role of this variable? And in the IPC, we set it to the sender_list of receiver. Why?
wq is short for wait-queue and it is used during IPC to connect sender and receiver. The queue is prio sorted so that IPCs happen according to their prio.
Adam
Adam adam@os.inf.tu-dresden.de Lackorzynski http://os.inf.tu-dresden.de/~adam/
l4-hackers mailing list l4-hackers@os.inf.tu-dresden.de http://os.inf.tu-dresden.de/mailman/listinfo/l4-hackers
On Mon Jul 14, 2014 at 18:51:45 -0400, Yuxin Ren wrote:
This makes sense. However I think the receiver needs this queue to save senders who want to talk to it. So why does sender still need this "_wq"?
The sender just wants to know in which queue it is. This is for example used in thread destruction for dequeuing.
Adam
l4-hackers@os.inf.tu-dresden.de