next up previous contents index
Next: Multiprocessor Support Up: Usage Rules Previous: External Threads

Thread Turnaround

 

Protocols should refrain from taking threads which are shepherding outgoing messages down the protocol stack and turning them around to accompany messages traveling up the protocol stack. Since protocols are allowed to reverse thread direction from incoming to outgoing, allowing turnaround from outgoing to incoming could lead to a thread caught in a recursive loop. If an outgoing thread needs to send a message back up, it should start a new thread to do this. The push routine of the ethernet protocol ( /usr/xkernel/protocols/eth) has an example of how this is done.



Larry Peterson
Wed Jan 10 10:40:08 MST 1996