Multithreaded server
- From: Ricardo Lebre <riclebre gsd inesc-id pt>
- To: gtk-list gnome org
- Subject: Multithreaded server
- Date: Mon, 29 Jul 2002 04:10:30 +0100 (WEST)
I'm developing a multithreaded server application using gtk+-1.2 and real
time is a critical factor.
On my application the main thread (A) launches thread (B) that initializes
a gtk console and blocks itself at gtk_main(). After that, thread (A)
blocks itself waiting for socket connections (with accept system call).
When a new connection is received, it launches a new thread (C) for
handling requests pending at the the newly created socket. Thread (C)
then has to update the gtk console.
- Because all threads execute concurrently i'm beleive i'm having a
conflict between thread (B) and thread (C) is it possible?
- Is there any other way around for doing this?
- I was thinking in using gdk_input_add but as far as i can tell
subsequent calls to the callback function are handled sequentially (no
thread is created to handle the request) and thus is not applied on my
situation, is this correct?
Thanks in advance,
my best regards, Ricardo Lebre
GSD, INESC-ID
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]