473,396 Members | 2,061 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

scheduling

Hello,
I have created a Class that creates Schedules
daily, ,interval (seconds), monthly, etc

this class only holds next run time, updates to nextrun time after and so
forth...just holds holds information about a single schedule and methods to
preform maintenance...

lets say i have a list of 100 of the above schedules to execute some event
based on daily, seconds, weekly, etc
there stored in a Collection
what would be the best way to impliment this in a windows service
1 . single timer in the service set to say 10ms to scan the collection and
see if current time is time to kick off event
or
2. set a timer for each indivual schedule and let the service just maintain
the list of schedules

hope i explained that enough
tks
DaveL


Jul 6 '08 #1
2 1254
Have you looked at the Windows Task Scheduler? I have seen so many people
making windows services which have all sorts of logic about running things
every X days/minutes etc. The put in clever configuration so they can chop
and change what gets run, even put in things to run as other users.
Then I show them around the task scheduler and they realise that Microsoft
already wrote all that code, tested it, and released it for free as part of
the OS.
I have seen fare less people who needed to write their own solution then
people who should have used Scheduler.

Check it out.
--
Ciaran O''Donnell
http://wannabedeveloper.spaces.live.com
"daveL" wrote:
Hello,
I have created a Class that creates Schedules
daily, ,interval (seconds), monthly, etc

this class only holds next run time, updates to nextrun time after and so
forth...just holds holds information about a single schedule and methods to
preform maintenance...

lets say i have a list of 100 of the above schedules to execute some event
based on daily, seconds, weekly, etc
there stored in a Collection
what would be the best way to impliment this in a windows service
1 . single timer in the service set to say 10ms to scan the collection and
see if current time is time to kick off event
or
2. set a timer for each indivual schedule and let the service just maintain
the list of schedules

hope i explained that enough
tks
DaveL


Jul 7 '08 #2
thanks i'll talke a good look at windows schedular

Dave

"Ciaran O''Donnell" <Ci************@discussions.microsoft.comwrote in
message news:FC**********************************@microsof t.com...
Have you looked at the Windows Task Scheduler? I have seen so many people
making windows services which have all sorts of logic about running things
every X days/minutes etc. The put in clever configuration so they can chop
and change what gets run, even put in things to run as other users.
Then I show them around the task scheduler and they realise that Microsoft
already wrote all that code, tested it, and released it for free as part
of
the OS.
I have seen fare less people who needed to write their own solution then
people who should have used Scheduler.

Check it out.
--
Ciaran O''Donnell
http://wannabedeveloper.spaces.live.com
"daveL" wrote:
>Hello,
I have created a Class that creates Schedules
daily, ,interval (seconds), monthly, etc

this class only holds next run time, updates to nextrun time after and so
forth...just holds holds information about a single schedule and methods
to
preform maintenance...

lets say i have a list of 100 of the above schedules to execute some
event
based on daily, seconds, weekly, etc
there stored in a Collection
what would be the best way to impliment this in a windows service
1 . single timer in the service set to say 10ms to scan the collection
and
see if current time is time to kick off event
or
2. set a timer for each indivual schedule and let the service just
maintain
the list of schedules

hope i explained that enough
tks
DaveL



Jul 9 '08 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: m3ckon | last post by:
Hi, I want to schedule a backup of three databases on a daily basis. I've written the code to run the 3 backups in TSQL and was wondering how best to automate this procedure? Should I put...
6
by: Tony Proctor | last post by:
Hi everyone We're experiencing some serious anomalies with the scheduling of ASP threads. I'd be interested to hear if anyone knows what algorithm is used (e.g. simple round-robin, or something...
13
by: Mike | last post by:
Normally scheduling a job is a very elementary operation but for some hidden reason I've been unable to schedule a job which runs on a 28 day cycle, even though I have at least 16 other jobs...
3
by: Muscha | last post by:
Hi, In our application we need to have a high performance scheduling framework. We want to be able to say for item 21 do an update on such and such time. We will have around 1 million items of...
3
by: mirek | last post by:
Hello, My ASP.NET application must have additional functionality which isn't typical for ordinary web use. It is: - connecting to the other server using specified protocol (an option to...
3
by: Alphonse Giambrone | last post by:
Can anyone point me toward a good example of an asp.net scheduling app? Preferrably in vb.net. TIA -- Alphonse Giambrone Email: a-giam at customdatasolutions dot us
1
by: Majed | last post by:
hi I'm planing to make scheduling app and need your advice on the best way to do that,and how to save the tasks to be executed and retrive their data at the right time. your input will be highly...
0
by: Lemune | last post by:
Hello. I need some help on building my sms services application (using modem). My application is to do some scheduling task based on daily, weekly and monthly. On the daily the choice are everyday,...
4
by: Dinsdale | last post by:
I'm looking at adding scheduling features to an application and I wanted to ask the community about any experience with scheduling components, either open source like from code project or from a...
2
Ritchie
by: Ritchie | last post by:
Please can anyone help me with d programs in C for CPU scheduling: WAP to show FCFS scheduling algorithm. WAP to show SJF scheduling algorithm. WAP to show Priority scheduling algorithm. WAP...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.