Multithreading in java watch online session on youtube in Hindi)
How to create thread in javawatch online session on youtube in Hindi)
What is runtime stack in Java?watch online session on youtube in English)
Sleep Method in Java ?watch online session on youtube in English)
What is Java Lock? Or Synchronizationwatch online session on youtube in English)
What is Thread Group in Java?watch online session on youtube in English)
What is Thread?
Before discussion of multithreading, we should learn what is thread?..
Thread is not a program.
Every java program has at least one thread i.e. main thread and this main thread created by the JVM(Java Virtual Machine).
Thread are light weighted and independent.
Threads share common memory area or same address space.
In the java all the Threads are produced and handled by the java.lang.Thread class Package.
We can executes multiple threads simultaneously.
What is Multithreading
Multithreading is a feature of java language in which programmer are allowed for concurrent execution of two or more threads for maximum utilization of CPU.