+ 2

What is thread? pls explain to me in some words


30th Mar 2017, 6:11 PM
Gan-Orgil Baatarkhuu
Gan-Orgil Baatarkhuu - avatar
6 Answers
+ 4
Simply put it is a child of a parent process that executes on its own. Threads are helpful if you need to run functions at the same time from a single program.
30th Mar 2017, 6:19 PM
+ 3
normally if you code "1 + 1" then "2 + 2" so 1+1 will be executed first then 2+2 will... but if you use thread on 2+2 they both will be executed at same time... like if you are playing a car race game... You're accelerating the car and want to turn it left... without thread you will need to release acceleration button then press left button... but with threads you can do both functions at same time... I hope you got it... 😊😊😊
30th Mar 2017, 6:17 PM
Ammy Dua
Ammy Dua - avatar
+ 2
Ammy Dua,nice answer bro.Well Explained
30th Mar 2017, 7:20 PM
Meharban Singh
Meharban Singh - avatar
there is a chapter in the sololearn java course
30th Mar 2017, 7:18 PM
Carefull with java threads, really be carefull. This designed to exec diferents task under the same software like on text editor The GUI run on main thread, you can open a thread to save the file while file is editing on live or download software update on background This aprroach prevent to lock program while is used, the big mistake threads on java never confused with "speed"×2 stay clear.
31st Mar 2017, 11:44 AM
nextco - avatar
Shukriya... Meharban Veere... 😉😉
31st Mar 2017, 4:37 PM
Ammy Dua
Ammy Dua - avatar