+ 2
What is thread? pls explain to me in some words
thread
6 Antworten
+ 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.
+ 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... 😊😊😊
+ 2
Ammy Dua,nice answer bro.Well Explained
0
there is a chapter in the sololearn java course
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.
0
Shukriya... Meharban Veere... 😉😉