Can we use semaphore or mutex or spin lock in interrupt
context in linux kernel ?
Answer Posted / achilles
We cannot sleep in interrupt context so semaphores and mutex
can't be used.
Spinlocks can be used for locking in interrupt context.
| Is This Answer Correct ? | 31 Yes | 6 No |
Post New Answer View All Answers
Tell me what is top half & bottom half of a kernel?
What is watchdog timer?
What are the different types of embedded systems?
What do you do to stay abreast of the latest technologies and tools?
What are recursive functions? Can we make them in line?
Tell me what is null pointer and what is its use?
What is a 'volatile' variable?
Tell me why embedded system is useful?
What is difference between binary semaphore and mutex?
What elements of oo design are most prone to abuse? How would you mitigate that?
What is the function of simple thread poll in embedded system?
what is meant by a forward reference in c?
Tell me what is the function of dma controlled in embedded system?
If your database was under a lot of strain, what are the first few things you might consider to speed it up?
Tell me can include files be nested?