Re: Gdk and Pth on NetBSD



>Has anyone managed to get multithreading to work using gtk and pth on
>NetBSD?  Apparently, GNU-Pth on NetBSD is non-preemptive and for most of
>the time the gtk thread never yields control to any other thread.  

GNU-Pth is always non-preemptive: its part of the design of the library.
More than that, they multiplex multiple user space threads on single
kernel threads, unlike linuxthreads (the linux Pthreads
implementation) which use multiple kernel threads.

Non-preemptive threads are generally not drop-in replacements for
preemptive threads, and user space threading is generally not a drop
in replacement for kernel space threading. AFAIK, glib's thread model
assumes preemptive threading.

I am not clear why you'd being trying to use GNU-Pth as thread system
with GTK+.

--p



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