×

Loading...
Ad by
  • 最优利率和cashback可以申请特批,好信用好收入offer更好。请点链接扫码加微信咨询,Scotiabank -- Nick Zhang 6478812600。
Ad by
  • 最优利率和cashback可以申请特批,好信用好收入offer更好。请点链接扫码加微信咨询,Scotiabank -- Nick Zhang 6478812600。

@BC

[Q]how to isolate unmanaged/non thread safe code in .Net?

If we deal with non thread safe managed code at concurrent environment, we can create
AppDomain that loads the non thread safe assembly and call the code. CLR isolates
code between AppDomain(s). This means CLR will keep seperate instances of the code
for each AppDomain. (If you have 10 AppDomain using the code, CLR will load 10 instance
of the code).

However, I have unmanaged/non thread safe dll. I need to konw how to use it inside
.Net code with concurrent enviornment. I can not find any article dealing with this situation.

Any advice is appreciated.
Report