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

โˆ™ 2009-01-13 20:31:50
This answer is:
๐Ÿ™
0
๐Ÿคจ
0
๐Ÿ˜ฎ
0
User Avatar

Add your answer:

Earn +20 pts
Q: What is the difference between single threaded and multi threaded process?
Write your answer...
Submit
Related questions

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 stud and 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.


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.


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.


What is the Difference between single ended scsi and differential scsi?

The main difference between single-ended scsi and differential scsi is that the latter of the two is not single-ended.


What is difference between a computer application and a process?

AnswerAn application is a program in general, for instance, Internet Explorer, Microsoft Word and Notepad.A process is single instance of an application whilst it is running.


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 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 program flowchart and system flowchart?

The difference between a program flow chart and a system flowchart is that a program flowchart is for a single program. A system flowchart is designed for an entire system with each box representing a process.


What is the difference between double cropping and multiple cropping?

what is difference between single double and multiple cropping


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.


What is the difference between single covalent and a triple covalent bond?

This is the difference between single and triple:- single: only one bond, C-C.- triple: three bonds, C≡C.


Difference between single user single task and single user multitasking?

differences between single user single task os and single user multi task os


What circumstances does a multi-threaded solution using multiple kernel threads provide better performance than a single-threaded solution on a single-processor system?

When a kernel thread suffers a page fault, another kernel thread can be switched in to use the interleaving time in a useful manner. A single-threaded process, on the other hand, will not be capable of performing useful work when a page fault takes place. Therefore, in scenarios where a program might suffer from frequent page faults or has to wait for other system events, a multi-threaded solution would perform better even on a single-processor system.


What is the difference between vacation and vacations?

single and plural


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

what is the difference between concept selling and product selling?


What is the difference between Bachelor and Baccalaureate?

A bachelor is a single man and a baccalaureate is a single woman


What is different between double layer media and a single layer media?

difference between single layer and double winding


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

explain the difference between single point & multi point cutting tool


What is single thread of screw thread?

when lead of the screw is equal to the pitch it is called single threaded screw


What is the difference between single and double threaded wood screws?

By 'single threaded' you really mean single start thread. So there is just one continuous thread running up the screw. Double start thread means that two threads start from the point and run up the screw entwined with each other. For the same thread spacing the double start will screw into the wood twice as quick but require more torque to drive it. Double or Twin start often used with power screwdrivers.


What is the difference between infinite electric flux and finite electric flux?

the difference between lightning and a single cell battery


What is the difference between condensation and hydrolysis reactions?

Condensation is a process wherein small molecules combine to form a large single molecule. Hydrolysis, meanwhile, is a process that breaks down a compound using a water molecule.


Which interface must you implement to ensure that your Servlet is single threaded?

SingleThreadModel