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 / C++ / MFC
  4. Best technique to Schedule Tasks

Best technique to Schedule Tasks

Scheduled Pinned Locked Moved C / C++ / MFC
csharp
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
    Atif Mushtaq
    wrote on last edited by
    #1

    Now a days i am working on a software , which will run specific scheduled tasks at certain time.What should be the technique to develop this software. One obviouse way is using Timers , but is there some built in notifications by windows.which could infrom my application at certain time. My schedule may be like this Task1 12:30:30 PM 7July 2004 Task2 2:30:30 PM 7July 2004 Task3 1:30:30 AM 8July 2004 Task4 12:30:30 PM 8July 2004 etc. Unmanaged in a .NET world

    B 1 Reply Last reply
    0
    • A Atif Mushtaq

      Now a days i am working on a software , which will run specific scheduled tasks at certain time.What should be the technique to develop this software. One obviouse way is using Timers , but is there some built in notifications by windows.which could infrom my application at certain time. My schedule may be like this Task1 12:30:30 PM 7July 2004 Task2 2:30:30 PM 7July 2004 Task3 1:30:30 AM 8July 2004 Task4 12:30:30 PM 8July 2004 etc. Unmanaged in a .NET world

      B Offline
      B Offline
      Blake Miller
      wrote on last edited by
      #2

      If you want your process to do the work, use CreateWaitableTimer. This will allow you to put your process into an efficient sleep, to be awoken at the appropriate time (or other circumstances, like a Windows Shutdown...). Otherwise, submit the tasks to the internal Windows Task Scheduler, which is capable of performing various types of 'jobs'.

      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