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

Why use POJO when I can use hashmap

0 Answers   Infotech,


Is jvm a overhead?

0 Answers  


when we applied start()method on a thread ,how does it know that to execute run()method on that object?

2 Answers   HCL,


is servlet,struts are threadsafe or not.please telme correct answer

1 Answers   Microsoft,


what is a non-repeatable read?

0 Answers  






How do you maintain a stateful session object across the session

2 Answers   HCL,


What are Benefits of Connection Pooling?

2 Answers  


What is RPC?

2 Answers  


What are the thread-to-thread communcation?

1 Answers  


What modifiers may be used with an inner class that is a member of an outer class?

0 Answers  


How many JSP scripting elements and what are they?

4 Answers   TCS,


Can we have more than one action servlet?

7 Answers   HP,


Categories