answersLogoWhite

0


Best Answer

A write-up of the answer to this question can be found here:

http://msdn.microsoft.com/en-us/library/ms693344(VS.85).aspx

"There are two types of apartments: single-threaded apartments, and multithreaded apartments. * Single-threaded Apartments-Single-threaded apartments consist of exactly one thread, so all COM objects that live in a single-threaded apartment can receive method calls only from the one thread that belongs to that apartment. All method calls to a COM object in a single-threaded apartment are synchronized with the windows message queue for the single-threaded apartment's thread. A process with a single thread of execution is simply a special case of this model.

* Multithreaded Apartments-Multithreaded apartments consist of one or more threads, so all COM objects that live in an multithreaded apartment can receive method calls directly from any of the threads that belong to the multithreaded apartment. Threads in a multithreaded apartment use a model called free-threading. Calls to COM objects in a multithreaded apartment are synchronized by the objects themselves."

User Avatar

Wiki User

15y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What is the difference between single threaded and multi threaded process?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Continue Learning about Statistics

What is difference between single threaded servlet and multi threaded servlet?

The single thread model means that your servlet would not be multi-threaded. If there are two concurrent requests to your servlet then 2 instances of your servlet will be created to process these 2 requests. You can implement the single thread model by implementing the SingleThreadModel interface in your class. This is just a marker interface and does not have any methods. The multi threaded model means that your servlet would be multi-threaded and only one instance would exist. Multiple concurrent requests would be served by the same instance but in different threads. You can implement the multi threaded model by not implementing the SingleThreadModel interface in your servlet class.


Difference between single parameter sensitivity and multiple parameter sensitivity?

Difference between single parameter sensitivity and multiple parameter sensitivity is that in multiple parameter sensitivity,defined parameters cannot be measured with a high degree of accuracy in the field or in the laboratory.


Is there a difference between a bar graph and a double bar graph?

A double bar graph plots two sets of data on a single chart, whereas a bar graph plots just one.


What is the difference between bar and histogram?

Bars are for single values or classes with uniform width, and the height of each bar is the frequency. In a histogram, the classes are of different width and the heights are proportional to the frequency density. The frequency, itself, is given by the area of the "bar" above the class.


Difference between data warehouse and OLTP?

A data warehouse differs from OLTP in that the former handles many large and complex queries regarding various rows of a table while the latter retrieves data from single rows. At the same time, a data warehouse is not real time and supports few users at a time compared to OLTP that can support many concurrent users.

Related questions

What is difference between single threaded servlet and multi threaded servlet?

The single thread model means that your servlet would not be multi-threaded. If there are two concurrent requests to your servlet then 2 instances of your servlet will be created to process these 2 requests. You can implement the single thread model by implementing the SingleThreadModel interface in your class. This is just a marker interface and does not have any methods. The multi threaded model means that your servlet would be multi-threaded and only one instance would exist. Multiple concurrent requests would be served by the same instance but in different threads. You can implement the multi threaded model by not implementing the SingleThreadModel interface in your servlet class.


What is difference between Stud and stud bolt?

stud has all its length threaded and it is used with two nuts, but the bolt has one end closed and the other end is threaded ,it is used with a single nut.


Two threads are waiting for keyboard input one in each process Does this problem ever occur in single threaded processes?

Single-threaded processes only have one thread of execution -- therefore it would not be possible to have two processes waiting for input at the same time.


How do you calculate the number of turns in a threaded screw?

Divide the threaded length by the lead length. For single threaded screws the lead is the same as the pitch.


What is the Difference between a single threaded file server and a multi-threaded file server?

Single thread means that the processor will wait until one 'process' is complete before it opens a new thread or 'process'. Multi-thread can handle multiple threads simultaneously making it faster and more responsive.


What is the difference between single plate clutch and multi plate clutch?

"What is the difference between single plate clutch and multi plate clutch?"


What is nymhy cable?

NYMHY : Multi Threaded flexible wireSee also:NYA : Single threaded hard wire 750/450 Volts NYAB : Single threaded hard wire 750/450 VoltsNYAF : Single threaded hard wire 500/300 VoltsNYY : Multi threaded flexible underwater wire with water repelant cover gel (cable washing is needed for connections) 1000/600 Volts


What is the difference between a single board computer and a microcontroller?

The difference between a single board computer and microcontroller is that a single board lacks a general purpose interface and the mass storage devices.


What is the difference between the contour and magnitude of single nerve fiber and nerve trunk?

What is the difference between the contour and magnitude of single nerve fiber and nerve trunk?


Is there a difference between three phase and single phase electrical supplies?

Yes, there a difference between three phase and single phase electrical supply services.


Difference between single-point cutting tool use in lathe and shaping machine?

explain the difference between single point & multi point cutting tool


What is the single biggest difference between product and selling concepts?

what is the difference between concept selling and product selling?