[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Example of threads and concurrency?
From: |
Noam Postavsky |
Subject: |
Re: Example of threads and concurrency? |
Date: |
Sat, 18 Feb 2017 14:43:39 -0500 |
On Sat, Feb 18, 2017 at 2:41 PM, Eli Zaretskii <address@hidden> wrote:
>> From: Noam Postavsky <address@hidden>
>> Date: Sat, 18 Feb 2017 14:23:22 -0500
>> Cc: Emacs developers <address@hidden>
>>
>> On Sat, Feb 18, 2017 at 1:43 PM, Eric Abrahamsen
>> <address@hidden> wrote:
>> >> I update the variable with a time-consuming/network-bound
>> >> computation. I want the computation to happen in a thread so it
>> >> doesn't block,
>>
>> You're out of luck, only one thread runs at a time.
>
> Only one thread runs at a time, but "network-bound" sounds like it
> could yield from time to time, if it calls accept-process-output and
> its ilk.
Oh, I missed the "network" part of that indeed.