My usual approach is to do what you're talking about, but add in a bit of
sleep time so that I don't create a busy loop.

On Wed, Jun 23, 2010 at 11:44 PM, thrift thrift <[email protected]>wrote:

> Dear All,
>        Is there anyone who have experience about how to check weather
> server is started or not?
>        Now, I use transport->open() in client side, if it does not throw
> exceptions, then it means server has been started. But in this way, we need
> to try many times before server is started which will occupy much CPU
> resources. So I wonder if there is better way about it.
>        Thanks very much.
>
> Best Regards,
>

Reply via email to