Pergunta de entrevista da empresa Google

why does interrupt need to turned off before taking spin lock

Respostas da entrevista

Sigiloso

7 de ago. de 2010

he is looking for answer relevent on linux.

Sigiloso

7 de jan. de 2011

You have to protect a critical section. If you enter a spin lock and acquire the lock, you will then be in a critical section. You have to make sure you don't get an interrupt which takes you out of a critical section before it is completed and the lock is cleared.