handling multi-threading in C#.net 3.0
-
Hello, I am developing in C#.net 3.0 and here, i am using the multi-threading. Here i have 5 threads in the following way: One thread sleeps for x mins after completing its one iteration. Second thread sleeps for y secs after completing its one iteration. Third thread sleeps for x hours after completing its one iteration. Fouth thread sleeps for 1 day after completing its one iteration. And the fifth thread sleeps for r mins after completing its one iteration. All these threads have access to same database tables, sometimes they do reading and sometimes they do writing into the database table. 1) Here, I have an idea that, i have to lock the database. 2) And also, while debugging i have seen that, due to multi-threading there is an issue with the order of execution. Can anyone help me on this ..please.... everything is over and at the last minute.. this problem arised. Thanks Anee Anee
-
Hello, I am developing in C#.net 3.0 and here, i am using the multi-threading. Here i have 5 threads in the following way: One thread sleeps for x mins after completing its one iteration. Second thread sleeps for y secs after completing its one iteration. Third thread sleeps for x hours after completing its one iteration. Fouth thread sleeps for 1 day after completing its one iteration. And the fifth thread sleeps for r mins after completing its one iteration. All these threads have access to same database tables, sometimes they do reading and sometimes they do writing into the database table. 1) Here, I have an idea that, i have to lock the database. 2) And also, while debugging i have seen that, due to multi-threading there is an issue with the order of execution. Can anyone help me on this ..please.... everything is over and at the last minute.. this problem arised. Thanks Anee Anee
I don't know what your question is. You described a system, but the only problem that I can discern from your post is that
anumadhu wrote:
there is an issue with the order of execution.
This is much too vague for me to offer any advice. Please post a specific question and we will try to help.
Sounds like somebody's got a case of the Mondays -Jeff