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