advantage of thread?

Answers were Sorted based on User's Feedback



advantage of thread?..

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

advantage of thread?..

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

advantage of thread?..

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

Post New Answer

More Advanced Java Interview Questions

What happens when a thread cannot acquire a lock on an object?

0 Answers  


what is difference between checked exception & unchecked exception in java?

3 Answers   Ness Technologies,


Why are component architectures useful?

0 Answers  


What is aop(assepct oriented programing)?

0 Answers  


whats is mean by tiles in struts

0 Answers   SolutionNET,






How will the struts know which action class to call when you submit a form?

6 Answers   HeadStrong,


What are different types of layout managers in java.awt package?

3 Answers   Android, CA,


Explain ioc concept?

0 Answers  


How are the elements of a borderlayout organized?

0 Answers  


What is a compilation unit?

1 Answers  


what is catalina in tomcat server.

11 Answers   IBM,


What is JNI?

1 Answers   Google, TCS,


Categories