c# - How does use of ThreadStatic affect the performance of IIS -


i want use threadstatic atrribute in code. want know if there performance issue in iis if use threadstatic attribute in application multiple threads going access fields . want idea if resources of iis overused or thing should keep in mind before implementing this.

there no direct performance issue using threadstatic through iis, have take in consideration iis use thread pool.

it means thread static not free after single call.

in other hand, web request can composed multiple threads executions (page example not web service) , may not share same thread same "client request".

if don't free threadstatic thing, may cost memory usage.

if valuate threadstatic in synchronous method call synchronous process , free in block @ end of same method, can use without side effect.


Comments

Popular posts from this blog

Command prompt result in label. Python 2.7 -

javascript - How do I use URL parameters to change link href on page? -

amazon web services - AWS Route53 Trying To Get Site To Resolve To www -