Re: Gdk and Pth on NetBSD
- From: Paul Davis <pbd Op Net>
- To: Kevin Phuoc Duy NGUYEN <pdn cs mu OZ AU>
- Cc: gtk-list gnome org
- Subject: Re: Gdk and Pth on NetBSD
- Date: Mon, 17 Dec 2001 17:39:24 -0500
>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]