Home > Software > .NET > Dot-Net
Interview Questions   Tutorials   Discussions   

Dot-Net - What is the difference between STA and MTA?

asked mar October 5, 2014 02:39 PM  

What is the difference between STA and MTA?


1 Answers

answered By siddhant   0  


  • STA stands for Single Threaded Apartment
  • In STA,there may be multiple apartment.But only single thread can be executed in a apartment.
  • In STA, if there is a need to communicate between threads we need a proxy, they can not do it directly.
  • MTA applications execute slower than STA
  • If the COM object cannot handle its own synchronization i.e not thread safe then the STA model can be used


  • MTA stands for Multi Threaded Apartment
  • In MTA, only one apartment will be there and all threads will execute within that single apartment.
  • In MTA, threads communicate directly to each other without a proxy.
  • MTA applications typically execute faster than STA because there is less system overhead and can be optimized to eliminate system idle time.
  • If the COM object can handle its own synchronization then the MTA model can be used
   add comment

Your answer

Join with account you already have



Ready to start your tutorial with us? That's great! Send us an email and we will get back to you as soon as possible!