title: How to manage multiple tasks and background services?
body: <p><a href="http://msdn.microsoft.com/en-us/library/windowsphone/develop/hh202944%28v=vs.105%29.aspx" rel="nofollow">Background agents for Windows Phone</a></p>
  
  <blockquote>
    <p>An application may have only one background agent. This agent can be
    registered as a PeriodicTask, a ResourceIntensiveTask, or both. The
    schedule on which the agent runs depends on which type of task it is
    registered as. The details of the schedules are described later in
    this topic. Only one instance of the agent runs at a time.</p>
  </blockquote>
  
  <p>What if I want many tasks simultaneous done in WP8 like, getting data from database and getting location information?</p>
  
  <p>Secondly, if there can be only one background process possible, then why <code>ScheduledActionService</code> have <code>Add()</code> method. </p>
  
  <p>I tried to add multiple projects of <code>Windows Phone Scheduled Task Agent</code> it gives following error.</p>
  
  <blockquote>
    <p>Error   2   The Project References
    contain two or more background agents of the same type
    'ScheduledTaskAgent'. projectName</p>
  </blockquote>
  
  <p>How will I run parallel task simultaneously. </p>