synchronize a kernel thread and interrupt service routine?


  • 0
    O

    if a kernel thread and interrupt service routine are accessing the same variable, how to implement synchronization for this variable? using a mutex in kernel thread would cause the interrupt service routine to busy wait on the variable. But interrupt should execute as fast as possible.


  • 0
    S

    ISR memory must be pinned and private.


Log in to reply
 

Looks like your connection to LeetCode Discuss was lost, please wait while we try to reconnect.