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

Describe an abstract class?

559


What is object array in c#?

517


What is executescalar in c#?

464


What is the implicit name and type of the parameter that gets passed into the class set method?

496


What are PE(Portable Executable)?

541






What is arraylist?

542


Explanation on Generic?

554


What is generic and non generic collections in c#?

437


What is reference types in c#?

477


What are the types in c#?

507


How Reflection is used and what it's significance ?

524


Define a strong name in .net?

546


update data in an xml file which resides in solution itself, using silverlight 4.0

1378


Describe the ways of cleaning up objects in c#.

522


What are custom exceptions?

534