Embedded Software Engineer Question:

Explain me what is spin lock?

Tweet Share WhatsApp

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.

Download Embedded Software Engineer PDF Read All 100 Embedded Software Engineer Questions
Previous QuestionNext Question
Tell me which parameters decide the size of data type for a processor?Tell me what type of scheduling is there in RTOS?