In contrast, global data structures protected by mutual exclusion cannot safely be accessed in an interrupt handler, as the preempted thread may be the one holding the lock -- but this can be rectified easily by masking the interrupt request during the critical section.