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

How we can call a javascript function on the change of a dropdown list in mvc?

684


What is difference between viewbag and viewdata and tempdata?

646


Briefly describe the roles of clr in .net framework?

648


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

635


What is connected scenario? : Entity framework

637






How to use multiple submit buttons in asp.net mvc?

694


what is entity sql?

709


Explain the new features 3.5 framework against with the tool?

595


What are the major improvements provided by the common language runtime and the base class libraries? Or what are the major improvements in .net framework 4.0?

628


What is difference between Viewbag and Viewdata in ASP.NET MVC?

668


mention in what all scenarios entity framework can be applicable?

1069


What is the meaning of unobtrusive javascript?

660


Explain the new features added in version 4 of mvc (mvc4)?

661


Is .net framework backwards compatible?

710


what do you mean by table-per-hierarchy?

700