For Students
Sunday, 11 March 2012
Mutual Exclusion with Test-and-Set
Shared data:
boolean
lock = false;
Process
P
i
do {
while (
TestAndSet
(lock)) ;
critical section
lock = false;
remainder section
}
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment