What are the types of threading models ?

Answers were Sorted based on User's Feedback



What are the types of threading models ?..

Answer / mohan kumar e.

Single Thread Apartment Model (STAThread)
Multiple Thread Apartment Model (MTAThread)

Is This Answer Correct ?    10 Yes 3 No

What are the types of threading models ?..

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

What are the types of threading models ?..

Answer / ahmed fawzy

there are two types

1-user mode

2-kernel mode

Is This Answer Correct ?    5 Yes 5 No

What are the types of threading models ?..

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

Post New Answer

More C Sharp Interview Questions

What is out in c#?

0 Answers  


Which are the access modifiers available in c#?

0 Answers  


What are the advantages of clr procedure over t-sql procedure?

0 Answers  


Write an expression which satisfies the following statements: (i) Creates an object of type q (ii) If m is null, returns n, otherwise returns m (iii) If x and y are string types, it concatenates x and y

1 Answers  


How to run the program at particular time? It should run everyday at 3:00 PM. After executing the program should sleep until next day at 3:00 PM. Please explain with code?

5 Answers   Sanat, Wipro,






What is access modifier in c#?

0 Answers  


How do you inherit from a class in C#?

1 Answers  


Why do we use public static void main in c#?

0 Answers  


What is a concrete class in c#?

0 Answers  


How do you create user defined data types in c#?

0 Answers  


Is null c# operator?

0 Answers  


What tool we have to use to install assembli in gac folder.

0 Answers  


Categories