# problem with PRINTF when i use it in a thread different than Root

**URL:** <https://forums.digi.com/t/problem-with-printf-when-i-use-it-in-a-thread-different-than-root/17290>\
**Category:** NET+OS\
**Tags:** thread, netos\
**Created:** [August 24, 2016, 7:48am UTC](https://forums.digi.com/t/problem-with-printf-when-i-use-it-in-a-thread-different-than-root/17290 "2016-08-24T07:48:06Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Reg](https://avatars.discourse-cdn.com/v4/letter/r/f4b2a3/32.png) [@Reg](https://forums.digi.com/u/Reg)\
**Post date:** [August 24, 2016, 7:48am UTC](https://forums.digi.com/t/problem-with-printf-when-i-use-it-in-a-thread-different-than-root/17290/1 "2016-08-24T07:48:06Z")

</div>

I’m working 7.5 NEt+Os with a mutlti thread application.  
When the app in in ROOT thread , i can use printf function to write on a console  
In all others threads , when i use the printf fonction, nothing is displayed on my console  
I tried with some threads with a lower or a higher priority than my thread root(15) but nothing.  
Is it a initialization problem of my thread ?

thanks for your help

---

<div class="post-metadata">

**Author:** ![LeonidM](https://avatars.discourse-cdn.com/v4/letter/l/d26b3c/32.png) [@LeonidM](https://forums.digi.com/u/LeonidM)\
**Post date:** [September 7, 2016, 4:50pm UTC](https://forums.digi.com/t/problem-with-printf-when-i-use-it-in-a-thread-different-than-root/17290/2 "2016-09-07T16:50:00Z")

</div>

can you reproduce this on a sample app with two trivial threads?

---

<div class="post-metadata">

**Author:** ![Reg](https://avatars.discourse-cdn.com/v4/letter/r/f4b2a3/32.png) [@Reg](https://forums.digi.com/u/Reg)\
**Post date:** [September 16, 2016, 9:00am UTC](https://forums.digi.com/t/problem-with-printf-when-i-use-it-in-a-thread-different-than-root/17290/3 "2016-09-16T09:00:12Z")

</div>

I found the problem  
the global variable in netosConfigStdio()  
naTxGlobalStdioFd should be initialized with the com handler
