In computer science, a thread of execution is the smallest sequence of programmed instructions that can be managed independently by a scheduler, which is typically a part of the operating system.
Multithreading in java is a process of executing multiple activities can proceed concurrently in the same program.
Thread is basically a lightweight sub-process, a smallest unit of processing.
In multithreading threads share a common memory area.
They don't allocate separate memory area so saves memory, and context-switching between the threads takes less time than process.
Multiple threads can exist within the same process and share resources such as memory, while different processes do not share these resources.
Using two different task at the same time means multi-tasking. Thread is unit of a process.
Check out our website: [ Ссылка ]
Follow Telusko on Twitter: [ Ссылка ]
Follow on Facebook:
Telusko : [ Ссылка ]
Navin Reddy : [ Ссылка ]
Follow Navin Reddy on Instagram: [ Ссылка ]
Subscribe to our other channel:
Navin Reddy : [ Ссылка ]
Telusko Hindi :
[ Ссылка ]
Subscribe to the channel and learn Programming in easy way.
Java Tutorial for Beginners : [ Ссылка ]
Scala Tutorials for Java Developers : [ Ссылка ]
C Tutorial Playlist : [ Ссылка ]
Android Tutorial for Beginners Playlist : [ Ссылка ]
XML Tutorial : [ Ссылка ]
Design Patterns in Java : [ Ссылка ]
Socket Programming in Java : [ Ссылка ]
Spring MVC Tutorial : [ Ссылка ]
OpenShift Tutorial for Beginners : [ Ссылка ]
Spring Framework with Maven : [ Ссылка ]
Sql Tutorial for Beginners : [ Ссылка ]
String Handling in Java : [ Ссылка ]
Array in Java : [ Ссылка ]
Java Servlet : [ Ссылка ]
Exception Handling in Java : [ Ссылка ]
Ещё видео!