G
Guest
Hi all,
I have just been reading up on threading and synchronisation which has
raised a question that I have not thought about before.
If you have a class with static members say in an ASP.NET application. Is
there any danger of thread race conditions as the members are not instance.
Same question with methods.
ie. ASP.NET session accesses a static method, another session accesses the
same static method. Is it possible that windows will time slice the accesses
therefore leaving the static member fields in an inconsistant state.
Same question with windows forms access to static members (providing another
thread hasn't purposely started an additional thread)
Thanks in advance.
Pete.
I have just been reading up on threading and synchronisation which has
raised a question that I have not thought about before.
If you have a class with static members say in an ASP.NET application. Is
there any danger of thread race conditions as the members are not instance.
Same question with methods.
ie. ASP.NET session accesses a static method, another session accesses the
same static method. Is it possible that windows will time slice the accesses
therefore leaving the static member fields in an inconsistant state.
Same question with windows forms access to static members (providing another
thread hasn't purposely started an additional thread)
Thanks in advance.
Pete.