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

Alessio Stalla alessiostalla at gmail.com
Tue Apr 22 13:32:20 UTC 2014


Seems like sleep(0) and yield() are implementation-specific enough that
they can actually mean the same thing:
http://stackoverflow.com/a/17494898/296025


On Tue, Apr 22, 2014 at 3:19 PM, Erik Huelsmann <ehuels at gmail.com> wrote:

> 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.
>
> _______________________________________________
> Armedbear-devel mailing list
> Armedbear-devel at common-lisp.net
> http://common-lisp.net/cgi-bin/mailman/listinfo/armedbear-devel
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.common-lisp.net/pipermail/armedbear-devel/attachments/20140422/12e61a43/attachment.html>


More information about the armedbear-devel mailing list