Solved

Multi-threading opinion

Posted on 2007-03-19
9
289 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 50 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
Get 15 Days FREE Full-Featured Trial

Benefit from a mission critical IT monitoring with Monitis Premium or get it FREE for your entry level monitoring needs.
-Over 200,000 users
-More than 300,000 websites monitored
-Used in 197 countries
-Recommended by 98% of users

 
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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

By the end of 1980s, object oriented programming using languages like C++, Simula69 and ObjectPascal gained momentum. It looked like programmers finally found the perfect language. C++ successfully combined the object oriented principles of Simula w…
Java had always been an easily readable and understandable language.  Some relatively recent changes in the language seem to be changing this pretty fast, and anyone that had not seen any Java code for the last 5 years will possibly have issues unde…
Viewers will learn one way to get user input in Java. Introduce the Scanner object: Declare the variable that stores the user input: An example prompting the user for input: Methods you need to invoke in order to properly get  user input:
The viewer will learn how to implement Singleton Design Pattern in Java.
Suggested Courses

617 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