ContactUs :

Please send your Questions & Answers or Feedback to "mohan@javabook.org"

What is a thread? What are the advantages we derived by programming with thread?

Threads allow programs to execute simultaneously. A thread is an independent path of execution in a program. These threads can be executed synchronously or asynchronously. All threads have a priority attached. Thread with a higher priority is executed first.

 

Advantages:

•        Allows multiple programs to be executed concurrently

•        Cost of thread is low compared to processes in terms of space and communication.

•        Threads are lightweight.

 

Related Posts Plugin for WordPress, Blogger...
Flag Counter