What is the difference between STA and MTA?

Answer Posted / praveen

Apartment Threading (STA): This allows multiple threads to
exist in a single application. In single threading
apartment (STA), each thread is isolated in it?s own
apartment. The process may contain multiple threads
(apartments) however when an object is created in a thread
(i.e. apartment) it stays within that apartment. If any
communication needs to occur between different threads
(i.e. different apartments) then we must marshal the first
thread object to the second thread.

Is This Answer Correct ?    14 Yes 7 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is .net core faster than .net framework?

553


What are the components required to create a route in mvc?

609


What is disconnected scenario? : Entity framework

532


What is storage model? : Entity framework

556


What is the .net framework 3.0 (formerly winfx)?

554






Is it possible to combine asp.net webforms and asp.mvc and develop a single web application?

542


Explain the tools used for unit testing in ASP.Net MVC

600


What is .net architecture and framework?

577


What is orm entity framework?

520


Explain the .net framework.

537


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

619


Why we need a separate mobile project template, while we can render our web application in mobile ?

590


What is conceptual model? : Entity framework

531


What is session state management?

565


How does .net framework works?

563