Threading vs single thread

Posted by user177883 on Stack Overflow See other posts from Stack Overflow or by user177883
Published on 2010-05-25T05:35:34Z Indexed on 2010/05/25 7:21 UTC
Read the original article Hit count: 257

Filed under:
|
|
|
|

Is it always guaranteed that a multi-threaded application would run faster than a single threaded application?

I have two threads that populates data from a data source but different entities (eg: database, from two different tables), seems like single threaded version of the application is running faster than the version with two threads.

Why would the reason be? when i look at the performance monitor, both cpu s are very spikey ? is this due to context switching?

what are the best practices to jack the CPU and fully utilize it?

I hope this is not ambiguous.

© Stack Overflow or respective owner

Related posts about c#

Related posts about .NET