Mutex - PowerPoint PPT Presentation

1 / 16
About This Presentation
Title:

Mutex

Description:

Mutex. Kevin O'Gorman. CS 170. 22 April 2002. Mutex. A1 statement. A2 mutex.wait() A3 wolski.balance = wolski balance - 200. A4 mutex.signal() A5 statement ... – PowerPoint PPT presentation

Number of Views:30
Avg rating:3.0/5.0
Slides: 17
Provided by: kevino3
Category:
Tags: gorman | mutex

less

Transcript and Presenter's Notes

Title: Mutex


1
Mutex
  • Kevin OGorman
  • CS 170
  • 22 April 2002

2
Mutex
A1 statement A2 mutex.wait() A3
wolski.balance wolski balance -
200 A4 mutex.signal() A5 statement
B1 statement B2 mutex.wait() B3
wolski.balance wolski balance -
200 B4 mutex.signal() B5 statement
balance 1000
mutex 1
3
Mutex
A1 statement A2 mutex.wait() A3
wolski.balance wolski balance -
200 A4 mutex.signal() A5 statement
B1 statement B2 mutex.wait() B3
wolski.balance wolski balance -
200 B4 mutex.signal() B5 statement
balance 1000
mutex 1
4
Mutex
A1 statement A2 mutex.wait() A3
wolski.balance wolski balance -
200 A4 mutex.signal() A5 statement
B1 statement B2 mutex.wait() B3
wolski.balance wolski balance -
200 B4 mutex.signal() B5 statement
balance 1000
mutex 0
5
Mutex
A1 statement A2 mutex.wait() A3
wolski.balance wolski balance -
200 A4 mutex.signal() A5 statement
B1 statement B2 mutex.wait() B3
wolski.balance wolski balance -
200 B4 mutex.signal() B5 statement
balance 800
mutex 0
6
Mutex
A1 statement A2 mutex.wait() A3
wolski.balance wolski balance -
200 A4 mutex.signal() A5 statement
B1 statement B2 mutex.wait() B3
wolski.balance wolski balance -
200 B4 mutex.signal() B5 statement
balance 800
mutex 0
7
Mutex
A1 statement A2 mutex.wait() A3
wolski.balance wolski balance -
200 A4 mutex.signal() A5 statement
B1 statement B2 mutex.wait() B3
wolski.balance wolski balance -
200 B4 mutex.signal() B5 statement
balance 800
mutex -1
8
Mutex
A1 statement A2 mutex.wait() A3
wolski.balance wolski balance -
200 A4 mutex.signal() A5 statement
B1 statement B2 mutex.wait() B3
wolski.balance wolski balance -
200 B4 mutex.signal() B5 statement
balance 800
mutex -1
9
Mutex
A1 statement A2 mutex.wait() A3
wolski.balance wolski balance -
200 A4 mutex.signal() A5 statement
B1 statement B2 mutex.wait() B3
wolski.balance wolski balance -
200 B4 mutex.signal() B5 statement
balance 800
mutex 0
10
Mutex
A1 statement A2 mutex.wait() A3
wolski.balance wolski balance -
200 A4 mutex.signal() A5 statement
B1 statement B2 mutex.wait() B3
wolski.balance wolski balance -
200 B4 mutex.signal() B5 statement
balance 800
mutex 0
11
Mutex
A1 statement A2 mutex.wait() A3
wolski.balance wolski balance -
200 A4 mutex.signal() A5 statement
B1 statement B2 mutex.wait() B3
wolski.balance wolski balance -
200 B4 mutex.signal() B5 statement
balance 800
mutex 0
12
Mutex
A1 statement A2 mutex.wait() A3
wolski.balance wolski balance -
200 A4 mutex.signal() A5 statement
B1 statement B2 mutex.wait() B3
wolski.balance wolski balance -
200 B4 mutex.signal() B5 statement
balance 600
mutex 0
13
Mutex
A1 statement A2 mutex.wait() A3
wolski.balance wolski balance -
200 A4 mutex.signal() A5 statement
B1 statement B2 mutex.wait() B3
wolski.balance wolski balance -
200 B4 mutex.signal() B5 statement
balance 600
mutex 1
14
Mutex
A1 statement A2 mutex.wait() A3
wolski.balance wolski balance -
200 A4 mutex.signal() A5 statement
B1 statement B2 mutex.wait() B3
wolski.balance wolski balance -
200 B4 mutex.signal() B5 statement
balance 600
mutex 1
15
Mutex
A1 statement A2 mutex.wait() A3
wolski.balance wolski balance -
200 A4 mutex.signal() A5 statement
B1 statement B2 mutex.wait() B3
wolski.balance wolski balance -
200 B4 mutex.signal() B5 statement
balance 600
Success!!
16
(No Transcript)
Write a Comment
User Comments (0)
About PowerShow.com