# Application changing from single thread to Free rtos Multi threaded

**URL:** <https://forums.freertos.org/t/application-changing-from-single-thread-to-free-rtos-multi-threaded/8593>\
**Category:** ST\
**Created:** [January 13, 2020, 6:41am UTC](https://forums.freertos.org/t/application-changing-from-single-thread-to-free-rtos-multi-threaded/8593 "2020-01-13T06:41:42Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![vasudsun123](https://avatars.discourse-cdn.com/v4/letter/v/8e7dd6/32.png) [@vasudsun123](https://forums.freertos.org/u/vasudsun123)\
**Post date:** [January 13, 2020, 6:41am UTC](https://forums.freertos.org/t/application-changing-from-single-thread-to-free-rtos-multi-threaded/8593/1 "2020-01-13T06:41:42Z")

</div>

Hi,  
I have a stm32 application which runs mainly by timer peripheral interrupt of around 5 milli second in the single threaded application environment. When I change the application into Free RTOS application ,does it need a timer to be implemented from Free RTOS side( I have created two tasks for the Free RTOS which mainly consist of two sequential functions(one for each task) from the single threaded application’s timer callback )? Because as per my understanding the scheduler will call the tasks in between the time slices allotted to each task.

---

<div class="post-metadata">

**Author:** ![rtel](https://d3iykfbgfh8zhg.cloudfront.net/user_avatar/forums.freertos.org/rtel/32/31_2.png) [@rtel](https://forums.freertos.org/u/rtel)\
**Post date:** [January 13, 2020, 8:42pm UTC](https://forums.freertos.org/t/application-changing-from-single-thread-to-free-rtos-multi-threaded/8593/2 "2020-01-13T20:42:55Z")

</div>

The RTOS already has its own tick interrupt - but depending on the accuracy require you may be able to just use API calls such as [vTaskDelayUntil()](https://www.freertos.org/vtaskdelayuntil.html) to get the timing you need.
