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

Can you explain renderbody and renderpage in asp.net mvc?

567


Explain the advantage of packaging over xcopy in .net?

552


How to enable Attribute Routing?

629


Briefly describe the roles of clr in .net framework?

559


Explain Keep method in Tempdata in ASP.Net MVC?

578






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

596


Mention some action filters which are used regularly in ASP.Net MVC?

552


What is conceptual model? : Entity framework

536


Is .net framework 4.8 the last version?

542


what is eager loading?

584


what is datacontrols?

3112


Can we free memory explicitly without waiting for garbage collector to free the memory in .net compact framework?

548


What is object service? : Entity framework

645


Do I need microsoft .net framework?

566


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

562