# Adl\_task vs application main task

**URL:** <https://forum.sierrawireless.com/t/adl-task-vs-application-main-task/5161>\
**Category:** Open AT\
**Created:** [July 26, 2011, 8:07am UTC](https://forum.sierrawireless.com/t/adl-task-vs-application-main-task/5161 "2011-07-26T08:07:32Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jorn](https://avatars.discourse-cdn.com/v4/letter/j/a6a055/32.png) [@Jorn](https://forum.sierrawireless.com/u/Jorn)\
**Post date:** [July 26, 2011, 8:07am UTC](https://forum.sierrawireless.com/t/adl-task-vs-application-main-task/5161/1 "2011-07-26T08:07:32Z")

</div>

In: Location Plug-in Development guide

I find this:

```auto
const adl_InitTasks_t adl_InitTasks [] =
{
{ adl_task, (20*1024) , "ADL" , 5 },
{ Task_GPS_COM, GPS_COM_STACK_SIZE , "GPS1" , 4 },
{ Task_GPS_CORE, GPS_CORE_STACK_SIZE , "GPS0" , 3 },
{ <customer application main task, <cutomer app task size , <task label> , 2 },
{ Task_GPS_AIDING_AEE, GPS_CORE_AIDING_AEE_STACK_SIZE , "AEE" , 1 },
{ 0, 0, 0, 0 }
};
```

In an example there is a definition for both “adl\_task” and the “customer application main task”.  
So if i can code in both definitions, whats the difference? The customer app main task seems to be the place where I should kick off my program, but what is the adl\_task then?

---

<div class="post-metadata">

**Author:** ![tomridl](https://sea1.discourse-cdn.com/flex025/user_avatar/forum.sierrawireless.com/tomridl/32/2704_2.png) [@tomridl](https://forum.sierrawireless.com/u/tomridl)\
**Post date:** [July 26, 2011, 9:07am UTC](https://forum.sierrawireless.com/t/adl-task-vs-application-main-task/5161/2 "2011-07-26T09:07:47Z")

</div>

If you are using the Internet plug-in with the location plug-in, you must make sure that all bearer related functions are done in the highest priority task (i.e. adl\_task, but you can all it anything so long as it is first in the list 🙂 ). Apart from handling the bearer, i think there are some backgound adl processes running on the highest thread, but I’m not sure.

---

<div class="post-metadata">

**Author:** ![Jorn](https://avatars.discourse-cdn.com/v4/letter/j/a6a055/32.png) [@Jorn](https://forum.sierrawireless.com/u/Jorn)\
**Post date:** [July 26, 2011, 9:30am UTC](https://forum.sierrawireless.com/t/adl-task-vs-application-main-task/5161/3 "2011-07-26T09:30:44Z")

</div>

Is there an example of the combinaton of the internet and location plugins?

---

<div class="post-metadata">

**Author:** ![tomridl](https://sea1.discourse-cdn.com/flex025/user_avatar/forum.sierrawireless.com/tomridl/32/2704_2.png) [@tomridl](https://forum.sierrawireless.com/u/tomridl)\
**Post date:** [July 26, 2011, 10:57am UTC](https://forum.sierrawireless.com/t/adl-task-vs-application-main-task/5161/4 "2011-07-26T10:57:54Z")

</div>

Not that I know of.
