answersLogoWhite

0


Best Answer

A single threaded application is one that has only one thread of execution running at any given point of time. Whereas a multi-threaded application can have multiple threads of executing running simultaneously.

Generally in enterprise applications, we need to fetch and load a lot of data before the system starts or initializes. In such cases, we typically spawn multiple threads and let the load operations run in parallel to save time. Lets say you need to fetch 10 different sets of data each of which will run for approximately 1 minute, if you run them all in sequence one by one, your system will load only after 10 minutes. But, if you spawn 10 threads, the system might load in around 2 minutes which is much faster than the single threaded time.

User Avatar

Wiki User

10y ago
This answer is:
User Avatar
More answers
User Avatar

Wiki User

8y ago

It means that it is NOT specifically multithreaded. A multithreaded programs runs several processes, called "threads", at once, allowing the program to multitask.

This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What is the difference between single threaded and multithreaded in java?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

What is the difference between single threaded and multi threaded process?

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."


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.


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.


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 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?


What is the difference between Bachelor and Baccalaureate?

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