I have doubt for implementing Multithreading with my application.
My Application structure ::
OS : Windows 7 code language : C#, .NET windows Database : .db (file database) Database access :: SQLite, Spatialite
Application logic : (3 part)
- Getting values from Database and aftersome modification inserting into database again in new table(temp1)
- Getting values from Database and aftersome modification inserting into database again in new table(temp2)
- Running query on 'temp1' and 'temp2'
Here, what I am thinking is.
I can create 2 threads which can run individually on 1st and 2nd. 3rd is dependent on 1st and 2nd.
but I think both 1st and 2nd thread is can't process because they both are working on same database (file).
Is my logic write ?