Synaptics Interview Question

explaing priority inversion ? how to solve and then question regarding priority inheritance - how to implement?