# \#semaphores

**URL:** https://forums.digi.com/tag/semaphores/119.md

[Latest](https://forums.digi.com/latest.md) · [Categories](https://forums.digi.com/categories.md) · [Tags](https://forums.digi.com/tags.md)

---

## [use serial port from two threads](https://forums.digi.com/t/use-serial-port-from-two-threads/3719)

<div class="topic-metadata">

**Author:** [@compie](https://forums.digi.com/u/compie)\
**Replies:** 8\
**Last updated:** [December 19, 2007, 7:04pm UTC](https://forums.digi.com/t/use-serial-port-from-two-threads/3719 "2007-12-19T19:04:29Z")

</div>

I want to write my own application that uses the serial port. I have to read from and write two the port (both at the same time). What’s the best way to do this? I was thinking about two threads that both do a blocking …
