T.R | Title | User | Personal Name | Date | Lines |
---|
2249.1 | create a thread | FOUNDR::WOODRUFF | | Wed May 14 1997 16:58 | 5 |
|
you could make the RPC call in a separate thread assuming your client stays
running.
garry
|
2249.2 | application is thread intolerant | AWECIM::KING | | Wed May 14 1997 18:24 | 7 |
| I forgot to mention in .0 that the application is thread intolerant. That's
why I'm looking for a way to make the remote procedure call return immediately
without holding up the client from its other obligations.
Any further ideas are appreciated...thanks,
Jim
|
2249.3 | | TUXEDO::WRAY | John Wray, Distributed Processing Engineering | Thu May 15 1997 14:22 | 16 |
| > I forgot to mention in .0 that the application is thread intolerant. That's
> why I'm looking for a way to make the remote procedure call return immediately
> without holding up the client from its other obligations.
I'm not sure what you mean by "thread intolerant", but you should be
aware that applications that link against DCE are in general executing
in a multi-threading environment; whether or not the application
explicitly creates any threads, the DCE runtime may choose to create
threads of its own.
Therefore, perhaps the use of an application-created thread for this
purpose is permissible - the thread could be created to make the RPC
and then terminate. If that's all this thread does, non-reentrant code
elsewhere in the application shouldn't be a problem.
John
|
2249.4 | Maybe a fire-and-forget thread is what I need | AWECIM::KING | | Fri May 16 1997 09:39 | 11 |
| re .3: That's a good point John. I was concerned that use of threads anywhere
in a program could have adverse effects on the non-reentrant code in the rest
of the program. I had ignored the possibility that an application that uses
DCE might employ threads somewhere under the covers.
As suggested in previous notes, I will try a "fire-and-forget" thread to
produce the equivalent asynchronous behavior.
Thanks for the advice...
Jim
|