On Thu, 25 Sep 2003, Marcel Crasmaru wrote: > As one may see, C1 can not > physically delete the message 1 > if odds are against it. An > explicit locking mechanism may > help: > > C1: a1 lock_the_selected_mailbox > S : a1 OK mailbox is yours [snip]
C2, of course, wins in this case if it just gets and holds the mailbox lock first. In fact, in this case C1 has *no* chance of ever deleting the message if it loses the first race. -Rob -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- Rob Siemborski | Andrew Systems Group * Research Systems Programmer PGP:0x5CE32FCC | Cyert Hall 207 * [EMAIL PROTECTED] * 412.268.7456 -----BEGIN GEEK CODE BLOCK---- Version: 3.12 GCS/IT/CM/PA d- s+: a-- C++++$ ULS++++$ P+++$ L+++(++++) E W+ N o? K- w O- M-- V-- PS+ PE++ Y+ PGP+ t+@ 5+++ R@ tv-@ b+ DI+++ G e h r- y? ------END GEEK CODE BLOCK-----
