Threading vs single thread
- by user177883
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.