add code for mutex unlock
add code for ctx switch