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 are the two ways to add constraints to a route?
What is needed for running an application built on winfx on the .net framework 3.0?
What filters are executed in the end?
What is definingquery in entity framework? : Entity framework
Asp.net mvc application, makes use of settings at 2 places for routing to work correctly. What are these 2 places?
what is client wins and store wins mode in entity framework concurrency?
Explain the advantages of dependency injection (di) in asp.net mvc?
Is .net framework 4.8 the last version?
Mention the core components of .net framework?
Will the name change be reflected in any of the existing .net framework 2.0 apis, assemblies, or namespaces?
Which .net framework is installed?
Explain representational state transfer (rest) in detail?
When using razor views, do you have to take any special steps to protect your asp.net mvc application from cross site scripting (xss) attacks?
What is entity framework used for?
What is orm entity framework?