What are thread?how threads can be handled? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

What are thread?how threads can be handled?

definition,thread creation and handling

8th May 2018, 4:19 PM
Mallikarjun h t
Mallikarjun h t - avatar
1 Answer
0
A thread is like a independent worker. When you define multiple threads you can use multiple workers in your program. This can, of course, become a problem when things have to be executed in a certain way or synchronised. ONLY use threads if you are really sure you know how and when to use them. They can be your friend, but a misuse can become a nightmare. (Just Google on: Java Multithreading and Java Threads. Stuff like that. )
8th May 2018, 4:42 PM
***
*** - avatar