What is the difference between STA and MTA?

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


Please Help Members By Posting Answers For Below Questions

Describe the .net framework architecture.

581


What are authentication filters in web api?

576


Explain how you can implement Ajax in MVC?

549


How to Create an Intranet Site Using ASP.NET MVC?

591


Is http stateful or stateless?

550






What is a model in programming?

553


what do you mean by table-per-hierarchy?

600


What is the use of view model in asp.net mvc?

683


Can you please explain the request flow in ASP.NET MVC framework?

619


How large is the .net framework 3.0? Does this change make the release larger?

552


Explain bundle.config in mvc4?

647


what is split entity?

602


What is the difference between adding routes, to a webforms application and to an mvc application?

545


Is dapper better than entity framework?

535


How we can register the Area in ASP.Net MVC?

568