# Is it allowed to call vTaskSuspend from timer task?

**URL:** <https://forums.freertos.org/t/is-it-allowed-to-call-vtasksuspend-from-timer-task/5922>\
**Category:** Kernel\
**Created:** [May 9, 2016, 2:15pm UTC](https://forums.freertos.org/t/is-it-allowed-to-call-vtasksuspend-from-timer-task/5922 "2016-05-09T14:15:50Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![system](https://d2v6vdsk2p900z.cloudfront.net/original/1X/7fc8fdb729c645aab5b20282bbe34e57cb407be6.jpeg) [@system](https://forums.freertos.org/u/system)\
**Post date:** [May 9, 2016, 2:15pm UTC](https://forums.freertos.org/t/is-it-allowed-to-call-vtasksuspend-from-timer-task/5922/1 "2016-05-09T14:15:50Z")

</div>

**[bupthebroker](https://sourceforge.net/u/bupthebroker/)** wrote on [Monday, May 09, 2016](https://sourceforge.net/p/freertos/discussion/382005/thread/858d648b/#c565):

Is it allowed to call vTaskSuspend from timer task? I am getting some strage behavior when i attempt this. Deferring the call to a normal task resolves the issues.

Regards

---

<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:** [May 9, 2016, 2:33pm UTC](https://forums.freertos.org/t/is-it-allowed-to-call-vtasksuspend-from-timer-task/5922/2 "2016-05-09T14:33:02Z")

</div>

**[rtel](https://sourceforge.net/u/rtel/)** wrote on [Monday, May 09, 2016](https://sourceforge.net/p/freertos/discussion/382005/thread/858d648b/#c565/d37a):

The timer task must not itself be suspended (or placed into the blocked  
state by, for example, a call to vTaskDelay()), but you can suspend any  
other task from the timer task. Likewise the Idle task must never be  
suspended.
