VMware Interview Question: Can spinlock be interrupted?... | Glassdoor

Interview Question

Software Engineer Interview

Can spinlock be interrupted?

Answer

Interview Answer

1 Answer

0

Yes, there are 2 versions of spinlock
1. spin_lock
2. spin_lock_irqsave

and unlock similarly, the first version can be interrupted and its not safe to use as it may lead to deadlock.

Ravi on Feb 27, 2012

Add Answers or Comments

To comment on this, Sign In or Sign Up.