From: Vincenzo a. N. N. <vin...@ya...> - 2004-05-03 21:08:39
|
On Monday 03 May 2004 22:56, Duncan Coutts wrote: > Graphics toolkits (X windows or win32 GDI) typically have pretty > strict requirements on threads. While it is possible to make use of > multiple OS/kernel threads, the locking issues are non-trivial and it > is generally not encouraged. It is probably best to consider them as > single threaded libraries. If you create windows (call GUI functions) in the same thread of the GUI main loop you have absolutely no problem, and your main program can run in parallel; if you use a channel carrying IO actions you can have the main GUI thread do anything you want (you send IO actions to it and it executes those); this might seem difficult but it's easy, surely easier than shared memory and locks or any other way to do the same thing (which is indeed considered very difficult for the reasons you cite). I am not sure if this is what you are looking for. But is this the mailing list you intended to send your message? V. |