Eli Zaretskii wrote: >> I think the biggest problem with uncooperative >> multi-threading in Emacs is that Emacs has so much global >> state. As a consequence, it's unsafe to let two threads use >> anything in the C code in parallel. > > Indeed, that's the main problem. Just adding threads to Lisp > is easy.
Is there a part that is safe to access in parallel? If not, or for the part that is unsafe, where is synchronization of access to be done, in Lisp or in C? -- underground experts united https://dataswamp.org/~incal