What are the types of threading models ?
Answers were Sorted based on User's Feedback
Answer / mohan kumar e.
Single Thread Apartment Model (STAThread)
Multiple Thread Apartment Model (MTAThread)
Is This Answer Correct ? | 10 Yes | 3 No |
Answer / 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 |
Answer / ahmed fawzy
there are two types
1-user mode
2-kernel mode
Is This Answer Correct ? | 5 Yes | 5 No |
Answer / armaan lakvi
1.Apartment threading model(single threading model).
2. Free threading model(multi threaded apartment).
3. Rental threading model.
Is This Answer Correct ? | 0 Yes | 0 No |
Is there any way to access private memebers of an object from another object?
Can we extend static class in c#?
What is ienumerable t in c#?
What is the difference between string and string in c#?
How do I port "synchronized" functions from visual j++ to c#?
What is AutoMapper in C#?
what is master pages how to use it. plase give one example in code vice
which access modifier we can declare the abstract class?
what is ment by Unboxing?
What is difference between static and readonly in c#?
Does c# support #define for defining global constants?
Contrast between an interface and abstract class?