Click here to Skip to main content
12,249,279 members (35,152 online)
Rate this:
 
Please Sign up or sign in to vote.
See more: Windows
hi,
i have written one windows application in c#,but i want to make it pop up for every one hour, i have used thred.span() but its taking more cpu usage.
please tell me is there any easy method to do it..

Thanks,
Shreekanth b
Posted 5-Jan-13 1:33am

1 solution

Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 1

You should use Thread.Sleep()[^]. You should also indicate what programming language you are using.
  Permalink  
Comments
ProgramFOX 5-Jan-13 8:06am
   
You should also indicate what programming language you are using.
The OP wrote this in his question:
i have written one windows application in c#
So, he indicated which programming language he's using.
Richard MacCutchan 5-Jan-13 8:31am
   
His tag just says "Windows".
shreekanth OT 7-Jan-13 6:47am
   
hi Rechards,
Thanks for your replay, but i am running this application every day 8 hours,
Thread always running, so its taking more cpu usage.do have any idea about timer trick.
Richard MacCutchan 7-Jan-13 12:29pm
   
Did you try reading the documentation in my suggested link?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month


Advertise | Privacy | Mobile
Web02 | 2.8.160426.1 | Last Updated 5 Jan 2013
Copyright © CodeProject, 1999-2016
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100