Click here to Skip to main content
15,891,763 members
Home / Discussions / C#
   

C#

 
AnswerRe: Problem in creating Shortcut to desktop and uninstall program in user all program Pin
Jay Nardev17-Jul-13 22:03
Jay Nardev17-Jul-13 22:03 
GeneralWindows Service: Timer vs Thread Pin
BBatts16-Jul-13 6:15
BBatts16-Jul-13 6:15 
GeneralRe: Windows Service: Timer vs Thread Pin
jschell16-Jul-13 8:18
jschell16-Jul-13 8:18 
GeneralRe: Windows Service: Timer vs Thread Pin
BBatts16-Jul-13 8:26
BBatts16-Jul-13 8:26 
GeneralRe: Windows Service: Timer vs Thread Pin
jschell17-Jul-13 8:40
jschell17-Jul-13 8:40 
GeneralRe: Windows Service: Timer vs Thread Pin
Richard MacCutchan16-Jul-13 20:30
mveRichard MacCutchan16-Jul-13 20:30 
GeneralRe: Windows Service: Timer vs Thread Pin
tasumisra17-Jul-13 0:27
tasumisra17-Jul-13 0:27 
GeneralRe: Windows Service: Timer vs Thread Pin
BBatts17-Jul-13 1:35
BBatts17-Jul-13 1:35 
Yes. It performs varies disk related services. Clean Up, Archive, Backup, etc etc. There can be up to 6 process running at the same time.

I currently create and fire 6 System.Threads on the Start() event. Each thread has a loop that keeps it running with a Thread.Delay, so they look something like this:


C#
private void WorkerThread_DoWork()
{
  while (contiueWorking)
  {
    //Perform Some Task

    System.Threading.Thread.Sleep(10000);
  }
}


The task may or may not take longer than 10 seconds to complete, depending on the amount of data that is being managed. So, my question is (and admittedly I'm stumbling trying to ask it) would it be better to have 6 timers in this situation or should I stick with the threads? Or am I simply overthinking it.
GeneralRe: Windows Service: Timer vs Thread Pin
Nicholas Marty17-Jul-13 2:01
professionalNicholas Marty17-Jul-13 2:01 
GeneralRe: Windows Service: Timer vs Thread Pin
BBatts17-Jul-13 2:07
BBatts17-Jul-13 2:07 
QuestionHow to create Dynamic MainMenu formation in WinForm Application using DataBase Pin
hoabanxanh15-Jul-13 23:47
hoabanxanh15-Jul-13 23:47 
SuggestionRe: How to create Dynamic MainMenu formation in WinForm Application using DataBase Pin
Richard MacCutchan15-Jul-13 23:54
mveRichard MacCutchan15-Jul-13 23:54 
AnswerRe: How to create Dynamic MainMenu formation in WinForm Application using DataBase Pin
Pete O'Hanlon15-Jul-13 23:54
mvePete O'Hanlon15-Jul-13 23:54 
GeneralRe: How to create Dynamic MainMenu formation in WinForm Application using DataBase Pin
hoabanxanh25-Jul-13 0:52
hoabanxanh25-Jul-13 0:52 
QuestionICursor Pin
jojoba2015-Jul-13 22:10
jojoba2015-Jul-13 22:10 
AnswerRe: ICursor Pin
Pete O'Hanlon15-Jul-13 22:41
mvePete O'Hanlon15-Jul-13 22:41 
QuestionRe: ICursor Pin
jojoba2015-Jul-13 22:51
jojoba2015-Jul-13 22:51 
AnswerRe: ICursor Pin
Pete O'Hanlon15-Jul-13 23:05
mvePete O'Hanlon15-Jul-13 23:05 
QuestionRe: ICursor Pin
jojoba2016-Jul-13 17:22
jojoba2016-Jul-13 17:22 
AnswerRe: ICursor Pin
Pete O'Hanlon16-Jul-13 20:10
mvePete O'Hanlon16-Jul-13 20:10 
QuestionRe: ICursor Pin
jojoba2016-Jul-13 20:19
jojoba2016-Jul-13 20:19 
AnswerRe: ICursor Pin
Mycroft Holmes16-Jul-13 20:22
professionalMycroft Holmes16-Jul-13 20:22 
Questionhello everybody i need some help to get the same in the following link (c# code and class and dynamically and based on stored procedure database) Pin
Member 184462915-Jul-13 8:12
Member 184462915-Jul-13 8:12 
AnswerRe: hello everybody i need some help to get the same in the following link (c# code and class and dynamically and based on stored procedure database) Pin
Dave Kreskowiak15-Jul-13 11:50
mveDave Kreskowiak15-Jul-13 11:50 
AnswerRe: hello everybody i need some help to get the same in the following link (c# code and class and dynamically and based on stored procedure database) Pin
Emmanuel Medina15-Jul-13 12:00
professionalEmmanuel Medina15-Jul-13 12:00 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.