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 are the types of threading models in VB.net ?

Answer Posted / praveena

There are lot of threading model available, but we focus on
threadingmodels that are common to win32based environments

singleThreaded:There is only one thread with in the
process,and it is doing all the work for the process.The
process must wait for the current execution of the thread
to complete before it can perform another action.

Apartment Threading (Single Threaded Apartment)
Apartment threaded means there are multiple threads within
the application. 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
Free Threading (Multi Threaded Apartment)
Free threaded applications were limited to programming
languages such as C++ until the release of Microsoft .NET.
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.

The developer must provide thread synchronization as part
of the code to ensure that threads do not simultaneously
access the same resources

Is This Answer Correct ?    12 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How can we remove handlers at run time?

1011


What is different between web.config and machine.config and where it will be ?

959


How can I extract the formated word(bold,italic,underline,font,color etc) from the msword file.?

966


Which control is an example of an object in vb net?

6889


What is enumerator?

957


what is commom language runtime?

914


What are the advantages of migrating to vb.net?

924


Explain the difference between namespace and assembly?

923


What is internal keyword in .net framework?

989


Name the class which allows an element to be accessed using unique key?

952


Name some of the features present in vb 2005?

914


What is the differnce between managed code and unmanaged code?

943


what is the need for dynamic controls in vb.net? i would like to know for what purpose should we create the controls dynamically? please give the answer in simple words.

2341


What is global assembly cache (gac)?

948


How to connect crystal report in vb.net ?

885