On Thu, 9 Mar 2006, Per Jessen wrote:
Anything in particular I need to be aware of in an application that is multi-threaded, but also does regular forks? I've studied some of the stuff talked about in the man-page for pthread_atfork(), and none of it applies to my situation. I don't think I have a specific problem with fork(), I'm just trying to eliminate that option.
I contribute to an open-source application that uses both fork's and pthreads. As long as I keep all of the GUI operations mostly limited to one thread it works fine, although I'm doing some popup dialogs from other threads without incident. X11 or Motif seem to have problems with more than one thread talking to it at once. Ours is a graphical/mapping application so we're doing a lot of X11 calls. -- Curt, WE7U. APRS Client Comparisons: http://www.eskimo.com/~archer "Lotto: A tax on people who are bad at math." -- unknown "Windows: Microsoft's tax on computer illiterates." -- WE7U "The world DOES revolve around me: I picked the coordinate system!"