what are the types of threading models in VB.net ?



what are the types of threading models in VB.net ?..

Answer / 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

More VB.NET Interview Questions

Can you please explain the difference between system.string and system.stringbuilder classes?

0 Answers  


What is trace in vb.net?

0 Answers  


what is the advantage of option strict on?

0 Answers  


What is an arraylist?

0 Answers  


What is difference between inline and code behind?

0 Answers  






What is branching logic control in VB.NET?

0 Answers  


What are the difference between dispose(), close(), exit(), end()?

0 Answers  


What is the significance of delegates. Where should they be used? What are the situations where we require them?

0 Answers  


what are the types of threading models in VB.net ?

1 Answers   Satyam,


code for itemstockgroupwise record?

1 Answers  


Write a program that accepts an array of numbers and a number, and return a string “Yes” if the number is found in the array, “No” if the number is not found in the array.

2 Answers  


Explain the advantages of migrating to vb.net?

0 Answers  


Categories