Fwd: threads & gtk



---------- Forwarded message ----------
From: chabayo <chabayo yahoo de>
Date: Aug 5, 2006 8:41 PM
Subject: AW: threads & gtk
To: gtk-app-devel-list gnome org

Am 05.08.2006 19:38:58 schrieb(en) Peter "Firefly" Lund:

I think you are looking for g_thread_create() and related functions.

...oh, yes. I found two links

http://s1x.homelinux.net/documents/gtk/gtk_threads.html
http://yolinux.com/TUTORIALS/GDK_Threads.html

both make me focus the near advantages.

Beside...

(just answer if it's no matter 2 you that thats the wrong mailing list)

...fork() creates a copy (or less a copy if kernel has a workaround - i
dont now how that's handled) of memory?

fork creates another process with it's own address space. This address is a
copy of the original onel (the parent's one) but it is not the same.
On the other hand, threads share the same address space. This is, if you
change variable "x" in one thread, the other threads will see the changes
(but remember that you will need synchronization to prevent race conditions)

I now how to use a pipe to push the output of a preforked execve
process (!?ok) to the input of the parent.

As i mentioned a pipe _works_like_ a file handle all file handles get
dublicated except the 1,2 & 3 ?? - or just pipes? ( ok, just could test
but may miss something )

And, IPC is working sigaction( signal , &sigaction , &old_sigaction ) ?


-Peter

Ok, no matter if i am not right now, im on my way - real thanks.

cheers


chabayo


___________________________________________________________
Telefonate ohne weitere Kosten vom PC zum PC: http://messenger.yahoo.de
_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list gnome org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list



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