On this account, an attempt of lock by a task results in failure except for the case where the resource is unlocked or the case where the value of the old lock key passed as a post code from the post issue task is equal to the current value (at execution of the CS instruction) of the lock word.