# thread question....

**URL:** <https://forums.digi.com/t/thread-question/5923>\
**Category:** NET+OS\
**Created:** [January 2, 2003, 8:20pm UTC](https://forums.digi.com/t/thread-question/5923 "2003-01-02T20:20:08Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex016/uploads/digi/original/1X/11da31a6a1fbcd03ef21d3f785c317c824009ae2.png) [@system](https://forums.digi.com/u/system)\
**Post date:** [January 2, 2003, 8:20pm UTC](https://forums.digi.com/t/thread-question/5923/1 "2003-01-02T20:20:08Z")

</div>

What happens if I have a thread waiting on a resource such as a semaphore or an event flag and the current owning thread terminates?

---

<div class="post-metadata">

**Author:** ![muscleman](https://avatars.discourse-cdn.com/v4/letter/m/f1d935/32.png) [@muscleman](https://forums.digi.com/u/muscleman)\
**Post date:** [January 14, 2003, 9:07pm UTC](https://forums.digi.com/t/thread-question/5923/2 "2003-01-14T21:07:59Z")

</div>

The waiting thread will return ana error since it references a resource that no longer exists. For more information refer to Kernel Users guide.
