Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

What is the difference between STA and MTA?

Answer Posted / prabhu

In single threaded apartment (STA) each thread is isolated
in a separate apartment underneath the process. The process
can have any number of apartments that share data through a
proxy. The application defines when and for how long the
thread in each apartment should execute. All requests are
serialized through the Windows message queue such that only
a single apartment is accessed at a time and thus only a
single thread will be executing at any one time. STA is the
threading model that most Visual Basic developers are
familiar with because this is the threading model available
to VB applications prior to VB.NET. You can think of it
like an apartment building full of a row of one room
apartments that are accessible one at a time through a
single hallway. The advantage this provides over single
threaded is that multiple commands can be issued at one
time instead of just a single command, but the commands are
still sequentially executed.


The free threaded/Multi Threaded Apartment (MTA) model has
a single apartment created underneath the process rather
than multiple apartments. This single apartment holds
multiple threads rather than just a single thread. No
message queue is required because all of the threads are a
part of the same apartment and can share data without a
proxy. You can think of it like a building with multiple
rooms that are all accessible once you are inside the
building. These applications typically execute faster than
single threaded and STA because there is less system
overhead and can be optimized to eliminate system idle
time.

Is This Answer Correct ?    32 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the .net framework and how does it work?

973


What is the use of display modes?

1059


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

1154


What is Area in ASP.Net MVC?

1100


What are HTML Helpers, AJAX Helpers in ASP.Net MVC?

1047


What is web api‘s in asp.net mvc 4 ?

1099


How large is the .net framework 3.0?

1030


What is the difference between ViewData, ViewBag and TempData?

1077


What is meant by viewdata?

986


Mention what is the difference between “ActionResult” and “ViewResult” ?

1050


Will c# 3.0, vb.net 9.0, atlas, or linq be included in the .net framework 3.0?

951


Explain linq to entities? : Entity framework

1038


how do you query in entity model when the result has a join from from different database other than the entity model?

976


Explain what platforms does the .net framework run on?

1039


What is representational state transfer (rest) mean?

985