[armedbear-devel] CL:SLEEP fixed for sub-millisecond intervals

Mark Evenson evenson at panix.com
Fri Mar 21 08:04:36 UTC 2014


On 3/20/14, 23:59, James M. Lawrence wrote:
> Hi,
> 
> The original bug appears to still be there. For example this will hang:
> 
> (defun test ()
>   (let ((object (cons nil nil)))
>     (threads:synchronized-on object
>       (threads:object-wait object 0.000000001))))
> 
> 1.4.0-dev-svn-14653
> Java_HotSpot(TM)_Server_VM-Oracle_Corporation-1.7.0_04-b20
> i386-Linux-3.2.0-24-generic-pae

Sigh.  Yes, this is still not resolved with THREADS:OBJECT-WAIT in
abcl-1.4.0-dev, although CL:SLEEP is fixed.

Apparently my thinking on this was incomplete.  For the SLEEP, degrading
to thread yield make sense for intervals less than a nanosecond.  For
OBJECT-WAIT is it really the case that you wish to degrade to a thread
yield without ever having tried to wait for a notification on the
synchronized object?


-- 
"A screaming comes across the sky.  It has happened before, but there
is nothing to compare to it now."



More information about the armedbear-devel mailing list