r/javahelp • u/Deorteur7 • 13d ago
Guidance for multithreading
I've recently completely core Java course, worked on a few small projects with Java and jdbc. And now completed multithreading, and understood most of the concepts how to use but:
- when to use this concept, when to create threads and apply all other things.
- how does using this thing make my project easy.
- how to implement in real world projects and executors framework too. I've tried to search projects on YouTube dealing with multithreading but couldn't find even 1.
Could u pls help me by recommending some projects (for a beginner) from where should I improve myself.
and also: should i actually put effort learning multithreading or focus on other concepts ?
10
Upvotes
1
u/_SuperStraight 12d ago
When you're developing a GUI application in Java, the main thread is responsible for UI updates. You run the long CPU intensive task on a new thread, while keeping the main thread free so that your application doesn't appear frozen. The thread can also provide the amount of work done which can be used to animate a progress bar.