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
Why do I get a "cs5001: does not have an entry point defined" error when compiling?
write program in c# using this instructions name avinash varma ,work experiance<2,nochildren his work experiance is higher than 5 years,more than one children one children name is diwakar,number of years of work eperiance at current company is the ratio of children and work experiance is 0.21 to 0.5
What are virtual classes in c#?
Can a dictionary have the same key?
What is JIT (just in time)? how it works?
What is difference between C# and VB.NET?
What is regex replace in c#?
What is difference between array and collection?
Explain About a class access specifiers and method access specifiers.
Describe the overview of clr integration.
Is string nullable c#?
how dot net compiled code will become platform independent?
Why do we use yield in c#?
Does a loop recorder have to be removed?
What sort algorithm does c# use?