Re: g_thread
- From: Olexiy Avramchenko <ath beast stu cn ua>
- To: Thijs Assies <thijs_a gmx net>
- Cc: GTK -app-devel <gtk-app-devel-list gnome org>
- Subject: Re: g_thread
- Date: Wed, 13 Nov 2002 15:26:15 +0200
Thijs Assies wrote:
Hi, i want to use g_thread to do the heavy stuff of my program, and
the program must still be running. But when i used it and it starts
going, the program still freezes... i uses fork() but the child's
dont quit ( using exit(0) or _exit(0) didn't help). How can i fix this?
[assuming that you are running under the Linux]
After g_thread_create() the clone() will be called inside the libs
(glib->gthread->pthread->glibc->kernel). fork() is just the shorter
way (glibc->kernel).
The new thread will be scheduled like your fork'ed process.
If your forked process solves your problem, g_thread* stuff will
solve it too.
Can you post the code example (in case its not too big) ?
Olexiy
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]