guile-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

doc monitor


From: Kevin Ryde
Subject: doc monitor
Date: Sat, 17 Jan 2004 23:45:52 +1000
User-agent: Gnus/5.110002 (No Gnus v0.2) Emacs/21.3 (gnu/linux)

        * scheme-scheduling.texi (Higher level thread procedures): In monitor,
        don't let "newly created" suggest a mutex created on every evaluation.
        Note what "monitor" means.


 - macro: monitor body...
     Evaluate BODY, with a mutex locked so only one thread can execute
     that code at any one time.  Each `monitor' form has its own
     private mutex and the locking is done per `with-mutex' above.  The
     return value is the return from the last form in BODY.

     The term "monitor" comes from operating system theory, where it
     means a particular bit of code managing access to some resource and
     which only ever executes on behalf one one process at any one time.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]