1 / 11

Rendezvous

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()

Download Presentation

Rendezvous

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Rendezvous Kevin O’Gorman CS 170 22 April 2002

  2. 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

  3. 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

  4. 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

  5. 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

  6. 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

  7. 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

  8. 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

  9. 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

  10. Rendezvous A1 statement A2 aArrived.signal() A3 bArrived.wait() A4 statement B1 statement B2 bArrived.signal() B3 aArrived.wait() B4 statement Success!

More Related