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. Visual Basic
  4. Windows Service Functionality

Windows Service Functionality

Scheduled Pinned Locked Moved Visual Basic
3 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.
  • V Offline
    V Offline
    VikashGohil
    wrote on last edited by
    #1

    Hello, this is Vikash Gohil. I have a windows Service that runs a thread on starting and the thread uses a while loop. Now I want to Use Sleep function in my windows Service. I want to know is it really OK or is there any kind of risk involved in making a windows service sleep. the sleep time i want to use is around 55 to 58 seconds. Please could anyone give me some guidelines on this topic. Awaiting a reply soon. Thanks in Advance.

    D 1 Reply Last reply
    0
    • V VikashGohil

      Hello, this is Vikash Gohil. I have a windows Service that runs a thread on starting and the thread uses a while loop. Now I want to Use Sleep function in my windows Service. I want to know is it really OK or is there any kind of risk involved in making a windows service sleep. the sleep time i want to use is around 55 to 58 seconds. Please could anyone give me some guidelines on this topic. Awaiting a reply soon. Thanks in Advance.

      D Offline
      D Offline
      DaveAuld
      wrote on last edited by
      #2

      This has been discussed here; http://stackoverflow.com/questions/998142/using-thread-sleep-in-a-windows-service[^]

      Dave Don't forget to rate messages!
      Find Me On: Web|Facebook|Twitter|LinkedIn
      Waving? dave.m.auld[at]googlewave.com

      V 1 Reply Last reply
      0
      • D DaveAuld

        This has been discussed here; http://stackoverflow.com/questions/998142/using-thread-sleep-in-a-windows-service[^]

        Dave Don't forget to rate messages!
        Find Me On: Web|Facebook|Twitter|LinkedIn
        Waving? dave.m.auld[at]googlewave.com

        V Offline
        V Offline
        VikashGohil
        wrote on last edited by
        #3

        Thanks daveauld for the reply. The post was really helpful. Thanks Again

        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