Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Multi-threading opinion

Posted on 2007-03-19
9
Medium Priority
?
296 Views
Last Modified: 2008-02-01
 What is your 'impression' of multi-threading?  How does one debug a multi-threaded application?  How do you know which thread is running and when?

  Can you describe under what circumstances that you think multi-threading is a useful technique?
 
0
Comment
Question by:jmurguia
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 3
9 Comments
 
LVL 86

Expert Comment

by:CEHJ
ID: 18750424
You can best debug a mt application using an IDE that gives you access to the various threads running.

Multithreading is essential in certain circumstances, e.g. in a web server. No serious web server can disallow the processing of simultaneous requests

It's a common misconception that mt speeds up processing. This is seldom the case; in fact the reverse is more likely
0
 

Expert Comment

by:EmmDub
ID: 18750494
Multithreading is most useful in situations where you have to do your own homework instead of asking E-E for help, but sometimes not.
0
 
LVL 30

Accepted Solution

by:
Mayank S earned 150 total points
ID: 18750791
Also think of multi-threading required in any typical scenario where you have one server servicing multiple clients, e.g., a chat server where mutiple users are online at one time and communicating with each other. The server needs to be able to process these client requests 'parallelly' and 'asynchronously' (independent of each other), so it needs to be multi-threaded.

>> It's a common misconception that mt speeds up processing. This is seldom the case; in fact the reverse is more likely

True. Cases where you might feel that mutli-threading is improving performance are where you want to improve response-time to the user. Though it doesn't really improve the performance there but it 'looks like' it is doing so because it parallelizes tasks. For example, if a user logs clicks on a button and you need to show him some stuff on the UI and also do some database updates. The user might feel that the application is slow because it takes time to get the response back. Now instead of doing the database updates on the same thread, if you do it on another thread, the user will get the response faster (though the DB update is taking place in another thread) and he will feel like the application's performance is better.
0
The top UI technologies you need to be aware of

An important part of the job as a front-end developer is to stay up to date and in contact with new tools, trends and workflows. That’s why you cannot miss this upcoming webinar to explore the latest trends in UI technologies!

 
LVL 86

Expert Comment

by:CEHJ
ID: 18751053
? I wonder why you consider my comment not worthy of any points jmurguia?
0
 
LVL 30

Expert Comment

by:Mayank S
ID: 18751322
Yes this should be a split.
0
 
LVL 30

Expert Comment

by:Mayank S
ID: 18751332
Notified Venabili
0
 
LVL 86

Expert Comment

by:CEHJ
ID: 18751463
Thanks m
0
 
LVL 30

Expert Comment

by:Mayank S
ID: 18753386
NP ;-)
0

Featured Post

The top UI technologies you need to be aware of

An important part of the job as a front-end developer is to stay up to date and in contact with new tools, trends and workflows. That’s why you cannot miss this upcoming webinar to explore the latest trends in UI technologies!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

INTRODUCTION Working with files is a moderately common task in Java.  For most projects hard coding the file names, using parameters in configuration files, or using command-line arguments is sufficient.   However, when your application has vi…
Java contains several comparison operators (e.g., <, <=, >, >=, ==, !=) that allow you to compare primitive values. However, these operators cannot be used to compare the contents of objects. Interface Comparable is used to allow objects of a cl…
Viewers will learn about arithmetic and Boolean expressions in Java and the logical operators used to create Boolean expressions. We will cover the symbols used for arithmetic expressions and define each logical operator and how to use them in Boole…
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …
Suggested Courses

715 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question