Answer Posted / umarali
STA:
1.STA stands for Single Threaded Apartment
2.In STA,there may be multiple apartment.But only single
thread can be executed in a apartment.
3.In STA, if there is a need to communicate between threads
we need a proxy, they can not do it directly.
4.MTA applications execute slower than STA
5.If the COM object cannot handle its own synchronization
i.e not thread safe then the STA model can be used
MTA:
1.MTA stands for Multi Threaded Apartment
2.In MTA, only one apartment will be there and all threads
will execute within that single apartment.
3.In MTA, threads communicate directly to each other without
a proxy.
4.MTA applications typically execute faster than STA because
there is less system overhead and can be optimized to
eliminate system idle time.
5.If the COM object can handle its own synchronization then
the MTA model can be used
| Is This Answer Correct ? | 2 Yes | 3 No |
Post New Answer View All Answers
What is the use of web api ? Why web api needed, if you have already restful services using wcf ?
Is .net framework dead?
Explain linq to entities? : Entity framework
What is NonActionAttribute ?
what is explicit loading?
What is filters in web api?
what is complex type?
What is the significance of nonactionattribute?
My organization went through the approval process of supporting the .net framework 2.0 in production. Do we need to go through the same process all over again for the .net framework 3.0? Do I need to do any application compatibility testing for my .net framework 2.0 applications?
What are Action Filters in ASP.NET MVC and its use?
What is difference between html.beginform and ajax.beginform?
What is attribute routing in mvc?
What is razor code?
How to return the JSON from action method in ASP.Net MVC?
What are html helpers in asp.net mvc?