【正确答案】缓冲区的格式说明:Sptr指示该消息的发送者,Nptr指向消息队列中下一缓冲区的指针;Text为消息正文。设置互斥信号量mutex(初值为1)与一个同步通信信号量Sm(初值为0),Sm也用于记录消息队列中现存消息的数目。 Seend(a)操作如下: Begin new(p); p.Sptr:=address of the sender; Move message to buffer p; Find the receiver; p(mutex); Add buffer p to the message queue; V(Sm); V(mutex); End 例题34