Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
It depends on the condition. If it's waiting for anything related to input / output (serial port, keyboard, socket, ...), select or poll are the way to go.
Else maybe you can tell us the condition that you're waiting for so we can comeupwith the right idea /suggestion.
By the way, there is a dedicated programming section here at LQ. There are some people there that only seem to answer coding related questions and don't visit other sections here. You can ask a moderator to move this thread by reporting your opening post.