advantage of thread?
Answers were Sorted based on User's Feedback
Answer / gaurav agrawal
our lines of code can be executed by many requests at a
time, this is the main advantage of the thread.
but the performance will slow down, so threading will be
used where it's needed.
| Is This Answer Correct ? | 16 Yes | 1 No |
Answer / vinay
basically You can make best use of your CPU, by ensuring that its always processing some or the other things. And threading makes the execution faster not slower as it divides the whole work into chunks and processes them parallel. finally unites then to give result. correct me if I am wrong.
| Is This Answer Correct ? | 8 Yes | 2 No |
Answer / mohit tyagi
Thread is a small part of a program when a program enter in the executed state threads will be execute concurrently and maximum use of cpu.
| Is This Answer Correct ? | 2 Yes | 5 No |
What is the difference between Super and This Keyword?
Describe, in general, how java's garbage collector works?
What value does readline() return when it has reached the end of a file?
How to add new JTabbed pane?
What is UniCastRemoteObject and what is its use in RMI?
What is meant by method chaining?
Why is string immutable in java?
Why JDBC has introduced
String is immutable.it is true String can be change to mutable How?
6 Answers IBM, Professional Access, TCS,
How many ways can a thread be used?
What happens when a thread cannot acquire a lock on an object?
How database connectivity in XML is achieved?