The concept of multithreading is similar to the concept of multitasking

Operating systems allows multiple processes to run on the same time like word and paint and calc

We want the same behavior in the scope of a single process/java application, we want to be able to launch multiple functions at the same time, this concept is called multithreading, and every bunch of code that runs in parallel with another is called to be run on a thread.

We can make a simple thread in only 3 steps

  1. Extending Thread class
  2. Overriding run method
  3. Call start method to start the thread