Hi,
I have very limited experience with either Oz tickets or thread locking
and I would just like to know if what I suggest below has any problems I
haven't considered.
I have a thread that processes certain files on the system. It runs
every five minutes and the file access portion is guarded by a lock. I
have created a ticket for the lock and saved that ticket as a pickle.
What I then intend to do is have another completely separate Oz process
read the pickle and take the ticket. This process will then guard it's
own access to the same set of files with the lock it gets from this ticket.
So in theory, the file access portion of each separate process will
suspend if the other process has the lock.
This sounds so simple that I'm sure I must be wrong.
Any advice would be gratefully accepted.
Regards
Mark R
--
Mark Richardson MBCS
Email: [email protected]
_________________________________________________________________________________
mozart-users mailing list
[email protected]
http://www.mozart-oz.org/mailman/listinfo/mozart-users