From: Eli Zaretskii <eliz@gnu.org>
To: Noam Postavsky <npostavs@users.sourceforge.net>
Cc: eric@ericabrahamsen.net, emacs-devel@gnu.org
Subject: Re: Example of threads and concurrency?
Date: Sat, 18 Feb 2017 21:41:59 +0200 [thread overview]
Message-ID: <83shnbp9q0.fsf@gnu.org> (raw)
In-Reply-To: <CAM-tV-9P+_E_B2-wFAzvkkfG0_q+bON2OSa=vFc5g2LnYdWX-g@mail.gmail.com> (message from Noam Postavsky on Sat, 18 Feb 2017 14:23:22 -0500)
> From: Noam Postavsky <npostavs@users.sourceforge.net>
> Date: Sat, 18 Feb 2017 14:23:22 -0500
> Cc: Emacs developers <emacs-devel@gnu.org>
>
> On Sat, Feb 18, 2017 at 1:43 PM, Eric Abrahamsen
> <eric@ericabrahamsen.net> 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.
next prev parent reply other threads:[~2017-02-18 19:41 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <87tw81sudh.fsf@ericabrahamsen.net>
2017-02-18 18:43 ` Example of threads and concurrency? Eric Abrahamsen
2017-02-18 19:23 ` Noam Postavsky
2017-02-18 19:41 ` Eli Zaretskii [this message]
2017-02-18 19:43 ` Noam Postavsky
2017-02-18 19:27 ` Eli Zaretskii
2017-02-18 20:40 ` Eric Abrahamsen
2017-02-19 16:02 ` Eli Zaretskii
2017-02-19 19:50 ` Eric Abrahamsen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=83shnbp9q0.fsf@gnu.org \
--to=eliz@gnu.org \
--cc=emacs-devel@gnu.org \
--cc=eric@ericabrahamsen.net \
--cc=npostavs@users.sourceforge.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).