Mutual Exclusion - sections are still atomic but they are...

Info iconThis preview shows pages 1–4. Sign up to view the full content.

View Full Document Right Arrow Icon
Mutual Exclusion Mutex Locks also enforce the mutual exclusion of two or more sections of code. A B C D E F Mutex_unlock(&m)
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Mutual Exclusion This means that the sequence ABC, DEF, can be executed as an atomic block without interleaving. Time ------------------------> T1 -> ABC ABC T2 -> DEF DEF T3 -> ABC DEF
Background image of page 2
Mutual Exclusion If different mutex locks are used then the
Background image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Background image of page 4
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: sections are still atomic but they are not mutually exclusive (m1!=m2) Mutex_lock(&m1) A B C Mutex_unlock(&m1) Mutex_lock(&m2) D E F Mutex_unlock(&m2) Mutual Exclusion This means that the sequence ABC, and DEF are atomic but they can interleave each other, Time ------------------------> T1 -> AB C A BC T2 -> D EF D EF T3 -> ABC DEF...
View Full Document

This note was uploaded on 01/30/2012 for the course CS 252 taught by Professor Gustavorodriguez during the Fall '11 term at Purdue University-West Lafayette.

Page1 / 4

Mutual Exclusion - sections are still atomic but they are...

This preview shows document pages 1 - 4. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online