110 likes | 134 Views
Rendezvous. Kevin O’Gorman CS 170 22 April 2002. Rendezvous. A1 statement A2 aArrived.signal() A3 bArrived.wait() A4 statement. B1 statement B2 bArrived.signal() B3 aArrived.wait() B4 statement. aArrived = 0. bArrived = 0. Rendezvous. A1 statement A2 aArrived.signal()
E N D
Rendezvous Kevin O’Gorman CS 170 22 April 2002
Rendezvous A1 statement A2 aArrived.signal() A3 bArrived.wait() A4 statement B1 statement B2 bArrived.signal() B3 aArrived.wait() B4 statement aArrived = 0 bArrived = 0
Rendezvous A1 statement A2 aArrived.signal() A3 bArrived.wait() A4 statement B1 statement B2 bArrived.signal() B3 aArrived.wait() B4 statement aArrived = 1 bArrived = 0
Rendezvous A1 statement A2 aArrived.signal() A3 bArrived.wait() A4 statement B1 statement B2 bArrived.signal() B3 aArrived.wait() B4 statement aArrived = 1 bArrived = -1
Rendezvous A1 statement A2 aArrived.signal() A3 bArrived.wait() A4 statement B1 statement B2 bArrived.signal() B3 aArrived.wait() B4 statement aArrived = 1 bArrived = 0
Rendezvous A1 statement A2 aArrived.signal() A3 bArrived.wait() A4 statement B1 statement B2 bArrived.signal() B3 aArrived.wait() B4 statement aArrived = 0 bArrived = 0
Rendezvous A1 statement A2 aArrived.signal() A3 bArrived.wait() A4 statement B1 statement B2 bArrived.signal() B3 aArrived.wait() B4 statement aArrived = 0 bArrived = 0
Rendezvous A1 statement A2 aArrived.signal() A3 bArrived.wait() A4 statement B1 statement B2 bArrived.signal() B3 aArrived.wait() B4 statement aArrived = 0 bArrived = 0
Rendezvous A1 statement A2 aArrived.signal() A3 bArrived.wait() A4 statement B1 statement B2 bArrived.signal() B3 aArrived.wait() B4 statement aArrived = 0 bArrived = 0
Rendezvous A1 statement A2 aArrived.signal() A3 bArrived.wait() A4 statement B1 statement B2 bArrived.signal() B3 aArrived.wait() B4 statement Success!