employer cover photo
employer logo

Pergunta de entrevista da empresa VMware

If there is one spin lock used for N different thread and each thread has its local variable which is just incremented by 1. If these threads are running all together on N cpus will after say 10 seconds the count of all the local variable be same. different? why?

Resposta da entrevista

Sigiloso

31 de out. de 2013

As spinlock does not guarantee fairness the answer is the values may be different.