Email list hosting service & mailing list manager

mutex-owner Mikael Djurfeldt (08 Apr 2000 14:57 UTC)
Re: mutex-owner Marc Feeley (10 Apr 2000 21:02 UTC)
Re: mutex-owner Mikael Djurfeldt (10 Apr 2000 21:46 UTC)
Re: mutex-owner Marc Feeley (11 Apr 2000 01:06 UTC)

Re: mutex-owner Mikael Djurfeldt 10 Apr 2000 21:42 UTC

Marc Feeley <xxxxxx@IRO.UMontreal.CA> writes:

> Mutex-owner is mostly useful for debugging purposes so you can tell
> which thread is holding on to a mutex that never seems to unlock.

I agree.

> Note that there is another implementation problem: Scheme mutexes can
> be unlocked by a different thread than the owner.  Some thread systems
> don't support this (for example POSIX threads).  Fortunately, the
> semantics of mutexes proposed can be implemented with a lower-level
> mutex and a condition variable.  So supporting mutex-owner is not an
> additional overhead.

One could of course remove the ability for a different thread to
unlock the mutex, but I guess the proposed behaviour is more natural
in the kind of interactive development environment which Scheme
systems normally provide.

Thank you.