Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. handling multi-threading in C#.net 3.0

handling multi-threading in C#.net 3.0

Scheduled Pinned Locked Moved C#
helpcsharpdatabase
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    anumadhu
    wrote on last edited by
    #1

    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

    S 1 Reply Last reply
    0
    • A anumadhu

      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

      S Offline
      S Offline
      Skippums
      wrote on last edited by
      #2

      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

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups