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