<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<p>Dear Petr ŠťavÃk,</p>
<ol>
<li>The POA is synchronized internally by omniORB. You would need
synchronization if you kept some non-local data. For example,
you may store pointers to servants in a global container so that
you can deallocate them later even if the client does not call
the disconnect operation.</li>
<li>You can observe the behavior of the provided server and
implement your server to behave similarly. The purpose of the
idle attribute is to show how readonly attributes are used and
implemented. Although always returning true follows the
protocol, it is not an interesting implementation, because then
the client can get away with not checking the attribute at all.
For example, our server starts returning true 5 seconds after
creation of the instance. You could also use a counter to return
true after a few times of returning false. Any implementation
where the client has to wait a little bit and the server can
check that the client waited would be great.<br>
</li>
</ol>
<p>Vlastimil Dort<br>
</p>
<div class="moz-cite-prefix">Dne 29.03.2019 v 16:19 Petr ŠťavÃk
napsal(a):<br>
</div>
<blockquote type="cite"
cite="mid:CABw2QtXRb2eUH=c+0aLhOKu7M5a1G=M_9qGgdfKjAvOkboXv3A@mail.gmail.com">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<div dir="ltr">
<div class="gmail_default"
style="font-family:arial,helvetica,sans-serif;color:#000000">Hello,
I have a few questions about the second assignment.</div>
<div class="gmail_default"
style="font-family:arial,helvetica,sans-serif;color:#000000"><br>
</div>
<div class="gmail_default"
style="font-family:arial,helvetica,sans-serif;color:#000000">Firstly
- I don't really understand the following note in the task 6
"Do not forget that with the default POA policy, methods of
server_i are executed in multiple threads and thus proper
snychronization is required". In my server implementation,
there is no data that could be shared among multiple threads,
so I am not sure what to synchronize here. Maybe - do you mean
that we should synchronize access to the default CORBA
structures like POA table as they are not thread-safe (that
means synchronizing method call like _this() which registers
the object)?</div>
<div class="gmail_default"
style="font-family:arial,helvetica,sans-serif;color:#000000"><br>
</div>
<div class="gmail_default"
style="font-family:arial,helvetica,sans-serif;color:#000000">Secondly
- I am not sure how to implement few server methods, like the
Idle method. Instance returned to the client by connect method
is exclusive for that client, so it is always idle. Or am I
getting something wrong?</div>
<div class="gmail_default"
style="font-family:arial,helvetica,sans-serif;color:#000000"><br>
</div>
<div class="gmail_default"
style="font-family:arial,helvetica,sans-serif;color:#000000">Thank
you for your answers.</div>
<div><br>
</div>
-- <br>
<div dir="ltr" class="gmail_signature"
data-smartmail="gmail_signature">
<div dir="ltr">S pozdravem Petr ŠťavÃk</div>
</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<pre class="moz-quote-pre" wrap="">_______________________________________________
NSWI080 mailing list
<a class="moz-txt-link-abbreviated" href="mailto:NSWI080@d3s.mff.cuni.cz">NSWI080@d3s.mff.cuni.cz</a>
<a class="moz-txt-link-freetext" href="https://d3s.mff.cuni.cz/mailman/listinfo/nswi080">https://d3s.mff.cuni.cz/mailman/listinfo/nswi080</a>
</pre>
</blockquote>
</body>
</html>