V
Vallabha
Hello All,
I have a multi-threaded application. This application makes use of
certain APIs from a third party library. One constraint using these
APIs is that no two APIs should be called with in one minute. For
example, if the three APIs are Foo1(), Foo2() and Foo3() then Foo1 and
Foo2 can not be called within one minute.
One thing I can do is before calling any of these APIs put a sleep for
1 minute and then call. Is there a better way than putting sleep
statement everywhere?
Any thoughts on this would be of great help.
Thanks.
I have a multi-threaded application. This application makes use of
certain APIs from a third party library. One constraint using these
APIs is that no two APIs should be called with in one minute. For
example, if the three APIs are Foo1(), Foo2() and Foo3() then Foo1 and
Foo2 can not be called within one minute.
One thing I can do is before calling any of these APIs put a sleep for
1 minute and then call. Is there a better way than putting sleep
statement everywhere?
Any thoughts on this would be of great help.
Thanks.