[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Example of threads and concurrency?
From: |
Eli Zaretskii |
Subject: |
Re: Example of threads and concurrency? |
Date: |
Sat, 18 Feb 2017 21:41:59 +0200 |
> 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.