# xSemaphoreTake

**URL:** <https://forums.freertos.org/t/xsemaphoretake/5557>\
**Category:** Kernel\
**Created:** [December 2, 2005, 10:38am UTC](https://forums.freertos.org/t/xsemaphoretake/5557 "2005-12-02T10:38:43Z")\
**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:** [December 2, 2005, 10:38am UTC](https://forums.freertos.org/t/xsemaphoretake/5557/1 "2005-12-02T10:38:43Z")

</div>

**nobody** wrote on [Friday, December 02, 2005](https://sourceforge.net/p/freertos/discussion/382005/thread/f4a208af/#aa0b):

I try to create a critical section using a semaphore, having two tasks trying to access the same data. My problem is that xSemaphoreTake sometimes returns before the actual timeout(blocking time)(which is around 500 mS), with pdFALSE. Anyone else seen this problem?

// Fred J

---

<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:** [December 2, 2005, 1:59pm UTC](https://forums.freertos.org/t/xsemaphoretake/5557/2 "2005-12-02T13:59:43Z")

</div>

**[rtel](https://sourceforge.net/u/rtel/)** wrote on [Friday, December 02, 2005](https://sourceforge.net/p/freertos/discussion/382005/thread/f4a208af/#aa0b/d123):

Never come across this.&nbsp; When this happens does the task block at all, or just return immediately with false?&nbsp; I would be grateful for any further information.

Regards.
