title: Multiple timers in windows service not working properly
body: <p>I have 2 different timers in my windows service each of which I am running at intervals of every 5 seconds, however they are both not being run at the same time.</p>
  
  <p>My logs simplified logs look like the following</p>
  
  <pre><code>11:49:00 : Timer1
  11:49:05 : Timer1
  11:49:10 : Timer1
  11:49:15 : Timer1
  11:49:20 : Timer1
  11:49:25 : Timer1
  11:49:30 : Timer1
  11:49:35 : Timer1
  11:49:48 : Timer2
  11:49:53 : Timer2
  11:49:58 : Timer2
  </code></pre>
  
  <p>This continues with just one being activated for the correct period of 5 seconds then the other. I want both of them to be run.</p>
  
  <p>I understand you will ask "why not put them in the same timer?" but i will be adding multiple more timers and the timing of these events are likely to change so I'd really like to fix this problem just now.</p>
  
  <p>Here is my code,</p>
  
  <pre><code>public partial class Service1 : ServiceBase
  {
      public Service1()
      {
          InitializeComponent();
      }
  
      protected override void OnStart(string[] args)
      {
          //Read or Create xml file to get necessary settings
          SerializeIformBuilder();
  
          //Checks for any user changes that may have occurred
          var manageUsers = new App.BLL.ManageUsers();
  
          System.Timers.Timer CreateNewUserTimer = new System.Timers.Timer();
  
          System.Timers.Timer PasswordUpdateTimer = new System.Timers.Timer();
  
          //Create Timer interval events
          CreateNewUserTimer.Elapsed += new System.Timers.ElapsedEventHandler(manageUsers.TimedEvent_CreateNewUsers);
          CreateNewUserTimer.Interval = 5000; //Once every 5 seconds
          CreateNewUserTimer.Enabled = true;
  
          PasswordUpdateTimer.Elapsed += new System.Timers.ElapsedEventHandler(manageUsers.TimedEvent_PasswordUpdate);
          PasswordUpdateTimer.Interval = 5000; //Once every 5 seconds
          PasswordUpdateTimer.Enabled = true;
  
      }
  </code></pre>