[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-devel
Subject:    Re: Do KParts support Hyper Threading?
From:       "Boyd Stephen Smith Jr." <bss03 () volumehost ! net>
Date:       2007-06-19 19:40:06
Message-ID: 200706191440.06883.bss03 () volumehost ! net
[Download RAW message or body]

[Attachment #2 (multipart/signed)]


On Tuesday 19 June 2007 13:36:52 Miller, Douglas K. CONT NAVAIR 2109, 1, N139 
wrote:
> I have found that that KParts supports multi threading, but when you use
> a machine with multiple cores (hyper threading) the application crashes.

1) Hyper threading is exposing a single core AS IF it were two cores, 
resulting in a slightly smaller performance hit when a pipeline has to be 
flushed but not actually providing simultaneous execution for multiple 
instructions.  Having two cores is vastly more powerful.

2) I've been running KParts on a 4-core NUMA machine for nearly 2 years now 
with no such crashes.  I suggest you investigate the problem more thoroughly 
AND make sure whatever KPart you are experiencing issues with is written in a 
thread-safe manner.

3) Thread support in a library means that it is *possible* to use that library 
from multiple threads, not that every application that works with one thread 
will work with more -- because there are probably a number of ways to use the 
library in a thread-unsafe manner.  In particular, Qt has many objects that 
cannot be safely shared across threads without external locking.

-- 
Boyd Stephen Smith Jr.                     ,= ,-_-. =. 
bss03@volumehost.net                      ((_/)o o(\_))
ICQ: 514984 YM/AIM: DaTwinkDaddy           `-'(. .)`-' 
http://iguanasuicide.org/                      \_/     

["signature.asc" (application/pgp-signature)]

>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic