Atomicity Flashcards
1
Q
what is atomicity
A
a set of machine instructions that have to be coupled so that they happen together
2
Q
how can we assure atomicity
A
disable interrupts
privilege level of the processor
semaphore
peripheral device modification
3
Q
what cant happen during an atomic piece of code? how do we ensure this
A
context switch
disable interrupts or make it mutually exclusive