C
Cool Guy
Is it possible to lock on one object from several threads at a time? If
so, is the order in which it "unlocks" the same as the order in which it
locks?
e.g.:
lock from thread1;
lock from thread2;
lock from thread3;
unlock from thread3;
unlock from thread2;
unlock from thread1;
Is this what would happen if we locked from three threads in the
illustrated order?
so, is the order in which it "unlocks" the same as the order in which it
locks?
e.g.:
lock from thread1;
lock from thread2;
lock from thread3;
unlock from thread3;
unlock from thread2;
unlock from thread1;
Is this what would happen if we locked from three threads in the
illustrated order?