Work in HR? Unlock Free Profile

VMware Member of Technical Staff Interview Question

"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?"
Add Tags [?]

Part of a Member of Technical Staff Interview Review - one of 426 VMware Interview Reviews

Answers & Comments

of 1

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

- Interview Candidate on Oct 31, 2013

To comment on this question, Sign In with Facebook or Sign Up

Tags are like keywords that help categorize interview questions that have something in common.