Embedded Software Engineer Question:
Explain me what is spin lock?
Answer:
If a resource is locked, a thread that wants to access that resource may repetitively check whether the resource is available. During that time, the thread may loop and check the resource without doing any useful work. Suck a lock is termed as spin lock.
Previous Question | Next Question |
Tell me which parameters decide the size of data type for a processor? | Tell me what type of scheduling is there in RTOS? |