Home/Support/Support Forum/non-reentrant NetOS and threads
New and improved user forum site going live on 12/6 (All users will need to reset their password when the new forum is active)
Welcome to Digi Forum, where you can ask questions and receive answers from other members of the community.

non-reentrant NetOS and threads

0 votes
I have multiple threads running several copies of select() simultaneously (Telnet client, SSH Server, several internal pipes). I was just told by Digi that NetOS is not reentrant which is a very serious problem (I get 2-3 thread crashes a night). Anyone have experiance with this? I wonder how Digi does it with their canned routines?

-Erik
asked May 27, 2004 in NET+OS by egawtry Veteran of the Digi Community (349 points)
recategorized Dec 19, 2013 by tuxembb

Please log in or register to answer this question.

11 Answers

0 votes
I think you are allowed to use select() from two different threads on the same socket, as long as you don't wait for the same condition. So one thread could wait for reading and another for writing. That would be ok, according to the documentation.
answered Jul 2, 2007 by compie Community Contributor (55 points)
...