In reply to adityaprasad123:
Can you explain more about what you mean by ‘not working as expected’? What does happen vs what do you expect to happen?
From the documentation: A lock request will be arbitrated the same as any other request. A lock is granted after all earlier requests are completed and no other locks or grabs are blocking this sequence.
Are you seeing different behavior?