all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Noam Postavsky <npostavs@users.sourceforge.net>
To: Eli Zaretskii <eliz@gnu.org>
Cc: Eric Abrahamsen <eric@ericabrahamsen.net>,
	Emacs developers <emacs-devel@gnu.org>
Subject: Re: Example of threads and concurrency?
Date: Sat, 18 Feb 2017 14:43:39 -0500	[thread overview]
Message-ID: <CAM-tV-9aqmEUCF+BoR_ieVhoG0zKwanJLxKXNtfpsw1wh4QoLA@mail.gmail.com> (raw)
In-Reply-To: <83shnbp9q0.fsf@gnu.org>

On Sat, Feb 18, 2017 at 2:41 PM, Eli Zaretskii <eliz@gnu.org> wrote:
>> 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.

Oh, I missed the "network" part of that indeed.



  reply	other threads:[~2017-02-18 19:43 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-02-10 19:44 Example of threads and concurrency? Eric Abrahamsen
2017-02-18 18:43 ` Eric Abrahamsen
2017-02-18 19:23   ` Noam Postavsky
2017-02-18 19:41     ` Eli Zaretskii
2017-02-18 19:43       ` Noam Postavsky [this message]
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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAM-tV-9aqmEUCF+BoR_ieVhoG0zKwanJLxKXNtfpsw1wh4QoLA@mail.gmail.com \
    --to=npostavs@users.sourceforge.net \
    --cc=eliz@gnu.org \
    --cc=emacs-devel@gnu.org \
    --cc=eric@ericabrahamsen.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 external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.