unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* Mutual exclusion in Emacs
@ 2004-05-25  6:57 Matthieu Moy
  2004-05-25  7:47 ` David Kastrup
  0 siblings, 1 reply; 3+ messages in thread
From: Matthieu Moy @ 2004-05-25  6:57 UTC (permalink / raw)


Hi ! 

How  is concurrency  managed in  Emacs?  I know  there's no  threading
support, but since you can launch several asynchronous processes, with
process sentinels, is there a risk that a process sentinel preempt the
non-process-sentinel  code   being  executed,  or   another  processes
sentinel. 

If so, is there a way  to guaranty mutual exclusion if all the process
sentinels access a common ressource? 

Thanks for your help,

-- 
Matthieu

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Mutual exclusion in Emacs
  2004-05-25  6:57 Mutual exclusion in Emacs Matthieu Moy
@ 2004-05-25  7:47 ` David Kastrup
  2004-05-25 21:44   ` Matthieu Moy
  0 siblings, 1 reply; 3+ messages in thread
From: David Kastrup @ 2004-05-25  7:47 UTC (permalink / raw)


Matthieu Moy <MatthieuNOSPAM.Moy@imag.fr.invalid> writes:

> How  is concurrency  managed in  Emacs?  I know  there's no  threading
> support, but since you can launch several asynchronous processes, with
> process sentinels, is there a risk that a process sentinel preempt the
> non-process-sentinel  code   being  executed,  or   another  processes
> sentinel. 
> 
> If so, is there a way  to guaranty mutual exclusion if all the process
> sentinels access a common ressource? 

Is there anything wrong with the Elisp manual?  I thought it was
explained pretty thoroughly just at what points of time sentinels may
get run.

-- 
David Kastrup, Kriemhildstr. 15, 44793 Bochum

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Mutual exclusion in Emacs
  2004-05-25  7:47 ` David Kastrup
@ 2004-05-25 21:44   ` Matthieu Moy
  0 siblings, 0 replies; 3+ messages in thread
From: Matthieu Moy @ 2004-05-25 21:44 UTC (permalink / raw)


David Kastrup <dak@gnu.org> writes:

> Is there anything wrong with the Elisp manual?  I thought it was
> explained pretty thoroughly just at what points of time sentinels may
> get run.

Woops, thanks. 

That's the problem with a  self-documented software : I never read the
manual ;-) and neither C-h  f set-process-sentinel nor M-x apropos RET
mutex RET helped me :-(.

-- 
Matthieu

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2004-05-25 21:44 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-05-25  6:57 Mutual exclusion in Emacs Matthieu Moy
2004-05-25  7:47 ` David Kastrup
2004-05-25 21:44   ` Matthieu Moy

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).