[clug-progsig] Keeping Status

Mark Carlson carlsonmark at gmail.com
Thu Feb 8 08:46:58 PST 2007


On 2/8/07, Shawn <sgrover at open2space.com> wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Related to this:  How can I tell when all the async processing has been
> done??  (I think I can see a couple ways to determine this, but it's
> SOOO closely related, I thought I'd see what you have to say.. :)
>

Semaphores / Locks?

Very handy things, as long as you can use them, that is.  Just aquire
a lock when a request is made to modify any of the objects.  If
something else comes along and tries to lock it, it is blocked until
whoever has the previous lock releases it (is done with the objects.)

Of course, there is always the case that I totally missed the problem
you are trying to solve...

-Mark



More information about the clug-progsig mailing list