mp:with-lock lock ordering
Hi,
I am wondering if the order in which multiple threads calls the with-lock on a common lock is the order in which each thread gets the lock when the previous thread releases the lock. Or is it random?
For example if I have 3 threads called 1 2 3 respectively. if they lock the same lock using with-lock, will they be given the lock in the order of which called with-lock on the lock?
Thanks,
Quinn Jarrell