Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » U++ MT-multithreading and servers » multi-threading slower than single thread
Re: multi-threading slower than single thread [message #24793 is a reply to message #24792] Sat, 30 January 2010 10:35 Go to previous messageGo to previous message
Didier is currently offline  Didier
Messages: 680
Registered: November 2008
Location: France
Contributor
Hi,

the same code runs faster with one thread than with several threads !
==> This is not a code performance issue : you would have the same problem with the single threaded version.

So must be a synchronisation problem :either you're use of mutexes has a bug ( maybe the API changed ? ), or more likely some internals use mutexes for GUI protection and you fall into global thread lock situation (all other threads are locked until the current thread has finished) .... and of corse on multi core, this is not good !

Do you're threads interact with GUI ?

[Updated on: Sat, 30 January 2010 10:36]

Report message to a moderator

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Linux MT problems with time functions
Next Topic: Why ie cannt catch messages from keyboard and mouse
Goto Forum:
  


Current Time: Wed May 08 01:43:59 CEST 2024

Total time taken to generate the page: 0.02090 seconds