With reference to the GATE IT 2007 | Question : 66
In the following article from GeeksForGeeks : Lock Compatibility Diagram
It can be clearly seen that if a transaction Ti owns a Shared lock on A, then a transaction Tj cannot take an Exclusive lock on A.
But in the question from 2007, we can see in the correct marked option (c), that transaction T1 takes a Lock_S(A) and then without waiting for it to be unlocked, Lock_X(A) is taken by T2, and so is the case for B, but here T2 first takes Shared lock on B and then T1 takes exclusive lock on B.
I’m confused as to what is being implied here ? Does it mean that Lock_X(A) call in T2 will wait for T1, and T1 will wait for Lock_X(B) from T2, so hence a deadlock ?