I have Windows Form application.
(C# with visual studio 2010, Framework : 4.0)
Database: .db (file database), connection object through SQLite
Thread th = new Thread(() => database(node, xNodetcname, xNodesqlquery1, xNodeHint, e, inXml));
th.Name = thread;
th.Start();
Above code create each thread and processing parallel on database() function.
Each thread having one SQL Query which fetching data from database.
While I not use Multithreading the performance is better but when I use Multithreading the performance is down.
Example:
Without Multithreading 3 query processing time = 1.5 minutes
With Multithreading 3 query processing time = 1.9 minutes.
My aim is to reduce the processing time of query.