# Re: \[freertos:discussion\] Too much time between
 xSemaphoreGiveFromISR and xSemaphoreTake()

**URL:** <https://forums.freertos.org/t/re-freertos-discussion-too-much-time-between-xsemaphoregivefromisr-and-xsemaphoretake/1968>\
**Category:** Kernel\
**Created:** [August 5, 2014, 2:29pm UTC](https://forums.freertos.org/t/re-freertos-discussion-too-much-time-between-xsemaphoregivefromisr-and-xsemaphoretake/1968 "2014-08-05T14:29:32Z")\
**Posts on this page:** 1\
**Page:** 1

<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:** [August 5, 2014, 2:29pm UTC](https://forums.freertos.org/t/re-freertos-discussion-too-much-time-between-xsemaphoregivefromisr-and-xsemaphoretake/1968/1 "2014-08-05T14:29:32Z")

</div>

**[rtel](https://sourceforge.net/u/rtel/)** wrote on [Tuesday, August 05, 2014](https://sourceforge.net/p/freertos/discussion/382005/thread/56e3b6f9/#56c2):

Timer callbacks execute in the timer service task, which is scheduled just like any other task. Do you have the priority of the task set higher than the application tasks so it runs immediately?

-------- Original message --------

From: sminder 

Date:05/08/2014 14:32 (GMT+00:00) 

To: "[freertos:discussion]" \<382005@discussion.freertos.p.re.sf.net\> 

Subject: [freertos:discussion] Too much time between xSemaphoreGiveFromISR and xSemaphoreTake() 

I rejoiced too soon. I use the xTimerResetFromISR() function in my interrupt subroutine for restarting my software timer. After a start of device it looks like good, but if I use this function again the time between call of the xTimerResetFromISR() and the first triggering of the software timer differ times from time. I use the portEND\_SWITCHING\_ISR(false) function in the end of the interrupt subroutine.

Too much time between xSemaphoreGiveFromISR and xSemaphoreTake()

Sent from [sourceforge.net](http://sourceforge.net) because you indicated interest in [https://sourceforge.net/p/freertos/discussion/382005/](https://sourceforge.net/p/freertos/discussion/382005/)

To unsubscribe from further messages, please visit [https://sourceforge.net/auth/subscriptions/](https://sourceforge.net/auth/subscriptions/)
