Hello, <br>
<br>
<div style="margin-left: 40px;">&nbsp; Is there anyway we can force a single thread model in omniORB? &nbsp;It will be a big job for us to<br>
make our code thread safe.<br>
</div>
<br>
Yes, you can do that configuring your POA in SINGLE_THREAD_MODEL.<br>
<br>
<br>
<blockquote style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;" class="gmail_quote">
  <div>12 CHAPTER 2. THE BASICS<br>
&nbsp;</div>
</blockquote>
<blockquote style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;" class="gmail_quote">
  <div style="margin-left: 40px;">Multi-threading<br>
As omniORB is fully multithreaded, multiple threads may perform the same<br>
upcall to your implementation concurrently. It is up to your implementation<br>
to synchronise the threads' accesses to shared data. In our simple example,<br>
we have no shared data to protect so no thread synchronisation is necessary.<br>
Alternatively, you can create a POA which has the SINGLE_THREAD_MODEL<br>
Thread Policy. This guarantees that all calls to that POA are processed sequentially.<br>
  </div>
</blockquote>
<br>
<br>
Cheers.<br>
Alberto.<br><br><div><span class="gmail_quote">2006/9/29, Tuyen Chau &lt;<a href="mailto:tchau@verano.com">tchau@verano.com</a>&gt;:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Duncan Grisby wrote:<br>&gt; The normal approach is to put something in per-thread state. You don't<br>&gt; want to put it on the servant object because multiple clients could call<br>&gt; a single servant concurrently.<br>
&gt;<br>&gt; Cheers,<br>&gt;<br>&gt; Duncan<br>This brings up another problem for us that we didn't anticipate.&nbsp;&nbsp;Our<br>implementation unfortunately is not thread safe.&nbsp;&nbsp;Is there anyway we can<br>force a single thread model in omniORB?&nbsp;&nbsp;It will be a big job for us to
<br>make our code thread safe.<br><br>Thanks for your response,<br>Tuyen<br><br>_______________________________________________<br>omniORB-list mailing list<br><a href="mailto:omniORB-list@omniorb-support.com">omniORB-list@omniorb-support.com
</a><br><a href="http://www.omniorb-support.com/mailman/listinfo/omniorb-list">http://www.omniorb-support.com/mailman/listinfo/omniorb-list</a><br></blockquote></div><br>