Re: [Gimp-developer] Simultaneous Multiprocessing and Multithreading in GIMP

Liam R E Quin <[email protected]>
Newsgroups gmane.comp.video.gimp.devel
Message-ID <[email protected]>
On Sat, 2019-10-26 at 15:30 +0330, Ahmad Nouralizadeh via gimp-
developer-list wrote:
>  AFAIK, using fork
> and multithreading is not recommended (e.g., look at the second
> answer here, Is it safe to fork from within a thread?

It's “not recommended” in the same way that using a knife to cut your
meat is not recommended: you could hurt yourself.

As you can see from that stackoverflow question, there can be problems
if you don't call exec() right away in the child process after a
fork(). Which GIMP does, avoiding the problems.

This is why GIMP does not deadlock when you run a plugin.

slave liam (ankh)


-- 
Liam Quin - web slave for https://www.fromoldbooks.org/
with fabulous vintage art and fascinating texts to read.
Click here to have the slave beaten.

_______________________________________________
gimp-developer-list mailing list
List address:    [email protected]
List membership: https://mail.gnome.org/mailman/listinfo/gimp-developer-list
List archives:   https://mail.gnome.org/archives/gimp-developer-list
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.