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
What are the Types of optimization and name a few and how do u do?
Why we use anonymous methods in c#?
Why is c# good for games?
What is an extension method in c#?
Can we inherit private class in c#?
Can we override interface methods in c#?
What are the steps to create a webservice and consume it?
Why do we need interfaces in c#?
What is entity framework in c#?
What are virtual destructors?
Explain when should you call the garbage collector in .net?
Does the system.exception class have any cool features?
Is there regular expression (regex) support available to c# developers?
Explain About sn.exe
What is an escape sequence? Name some string escape sequences in c#.