+ 2

What is thread? pls explain to me in some words

thread

30th Mar 2017, 6:11 PM
Gan-Orgil Baatarkhuu
Gan-Orgil Baatarkhuu - avatar
6 Respuestas
+ 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
Erik
+ 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
0
there is a chapter in the sololearn java course
30th Mar 2017, 7:18 PM
T0nd3
0
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
nextco - avatar
0
Shukriya... Meharban Veere... 😉😉
31st Mar 2017, 4:37 PM
Ammy Dua
Ammy Dua - avatar