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
Explain the difference between a microcontroller and an embedded system?
Explain what is embedded system in a computer system?
What buses are used for communication in embedded system?
Tell me why cannot arrays be passed by values to functions?
Tell me what are real-time embedded systems?
Describe the life-cycle of a software development (application design) process.
Explain me what is endianness of a system and how do different systems communicate with each other?
Explain me what is kernel paging?
What are the most common errors you've found in embedded systems?
Can you have constant volatile variables?
What is the need for having multibyte data input and output buffers in case of device ports?
What is the task of the pre-processor?
Tell me can a pointer be volatile?
Tell me what are buses used for communication in embedded system?
What source control systems have you worked with?