Skip to main content

Order one way calls are processed within the same thread.

  • February 16, 2013
  • 0 replies
  • 0 views

Dominique Sacre
Forum|alt.badge.img+2

Problem:

  • Product Name: VisiBroker
  • Product Version: all
  • Product Component: ORB
  • Platform/OS Version: all

How to guarantee the execution order of 2 oneway calls processed within the same thread.

Resolution:

Same as normal CORBA invocation, oneway calls are sent in-order. However, the requests might be processed out-of-order. For instance, for a server implementation using thread pool model, a new thread is created for every incoming request from the same client. There is no guarantee that thread A will run to completion earlier than thread B even if thread A starts earlier. 

To guarantee in-order processing of the request, one could use thread per session model, where a single thread is created to service one client. 

On client-side, one should use SYNC_WITH_SERVER policy for the calls. 

Old KB# 26313

#Security
#VisiBroker