Click here to Skip to main content
15,921,622 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
XML
<configuration>
  <system.runtime.remoting>
    <application>
      <service>
        <wellknown type="ONX.Cmn.MyService, ONXCmn">
          objectUri="MyServiceUri"
          mode="Singleton" 
          </wellknown></service>
      <channels>
        <channel ref="tcp" port="33000" />
      </channels>
    </application>
  </system.runtime.remoting>
</configuration>




in this code(mode=Singleton) ,if same time more 100 client connect to Server ,and call same function (this function fetch data from database) ,will clien's datas cross or mixed ?

[edit]Code block added, XML characters escaped so we can actually read them... - OriginalGriff[/edit]
Posted
Updated 4-Mar-11 3:23am
v2

1 solution

Depends on the design of your functions, i.e. their "thread safety". Use lock statements to safeguard data from destructive interaction of concurrent threads.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900