What are the types of threading models ?

Answer Posted / don

Single Threading: This is the simplest and most common threading
model where a single thread corresponds to your entire
application's
process.
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.
Free Threading: The most complex threading model. Unlike STA,
threads are not confined to their own apartments. Multiple
treads can
make calls to the same methods and same components at the
same time.

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How does inheritance work in c#?

617


How can you read 3rd line from a text file?

523


What is different between Static Constructor and Private Constructor?

459


What is the difference between static and private constructor?

469


What is the difference between int and int in c#?

489






What is the use of 'as' Keyword in C# ?

574


How long does a loop recorder procedure take?

509


what is object-oriented programming (oop) language?

478


What is default value of decimal c#?

472


Explain about c# language.

594


What is a helper method in c#?

473


Is as keyword in c#?

513


What is difference between an Structure and Class?

563


What is a collection in c#?

502


What are different types of classes in c#?

477