[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: User interaction from multiple threads

From: hw
Subject: Re: User interaction from multiple threads
Date: Tue, 28 Aug 2018 22:47:33 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux)

Eli Zaretskii <address@hidden> writes:

>> From: hw <address@hidden>
>> Cc: address@hidden, address@hidden, address@hidden,
>> address@hidden, address@hidden,
>> address@hidden
>> Date: Mon, 27 Aug 2018 20:43:08 +0200
>> >> Why doesn't Emacs support executing multiple threads in parallel?
>> >
>> > Because it's much harder, what with all the global resources an
>> > editor has.  E.g., consider editing a buffer while another thread
>> > decides to modify it or even delete it.
>> When multiple threads are running serialized, they still could decide
>> --- or already have decided --- to do stuff that is no longer wanted or
>> possible by the time they get to run (again).  Or not?
> How is this different from a single-threaded session?  There's always
> the danger that an operation becomes irrelevant by the time it is
> carried out, but the danger should normally be very low.

When another thread can always modify or delete a buffer while the
buffer is being edited, then this possibility doesn't speak against
running threads in parallel rather than serialized.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]