[Armedbear-devel] Non-zero timeouts CL:SLEEP and THREADS:OBJECT-WAIT below the timer Planck limit interpolated as a nanosecond

Erik Huelsmann ehuels at gmail.com
Tue Apr 22 13:19:15 UTC 2014


Hi Mark,

Are you sure? According to this article:
http://stackoverflow.com/questions/15048170/difference-between-thread-yield-and-thread-sleep#answers,
there's no stable Yield implementation across platforms on Java. Do we
really want to provide platform defined behaviour?

Bye,

Erik.


On Tue, Apr 22, 2014 at 12:50 PM, Mark Evenson <evenson at panix.com> wrote:

>
> On 19 Apr 2014, at 19:53, James M. Lawrence <llmjjmll at gmail.com> wrote:
>
> […]
> > What should bt:thread-yield do? (sleep 0) or (sleep 0.01) or (sleep
> > least-positive-single-float) or something else?
>
> ABCL should implement a THREADS:YIELD primitive mapping directly to
> java.lang.Thread.yield().
>
> In the intermin, impelement bt:thread-yield as
>
>         (java:jcall "yield" (java:jstatic "currentThread"
> "java.lang.Thread”))
>
> --
> "A screaming comes across the sky.  It has happened before but there is
> nothing
> to compare to it now."
>
>
>
>
>
>
> _______________________________________________
> Armedbear-devel mailing list
> Armedbear-devel at common-lisp.net
> http://common-lisp.net/cgi-bin/mailman/listinfo/armedbear-devel
>



-- 
Bye,

Erik.

http://efficito.com -- Hosted accounting and ERP.
Robust and Flexible. No vendor lock-in.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.common-lisp.net/pipermail/armedbear-devel/attachments/20140422/244a0f79/attachment.html>


More information about the armedbear-devel mailing list