in reply to Re^5: Fcntl() and multiple filehandles
in thread Fcntl() and multiple filehandles

Your first example should only be true if Processes A and B are related processes (parent-child or siblings) and the filehandle is exactly the same one---a parent process opened the file, left it open after a fork, and the child process is locking that handle. Your second example should only be true if Process C has multiple locks on the same region of the same file.

If you're seeing different behavior than this, post a minimal example.