Java Thread and multithreading Explained in Tamil

preview_player
Показать описание
Java Multi-threading
Thread
 light-weight smallest part of a process
 run concurrently with the other parts(other threads) of the same process.
 separate path of execution so if there is an exception in one thread, it doesn’t affect execution of other threads.
 Share common memory.

Why Multi-threading???
 Process of executing multiple threads simultaneously is multi-threading.
 To maximize the CPU utilization time, there should be minimum idle CPU time.
States of thread
 NEW
 RUNNABLE
 BLOCKED
 WAITING
 TIMED_WAITING
 TERMINATED

Thread can be at only one state at a given time.

Multi-threading vs Multitasking vs Multiprocessing vs Parallel processing

Creating a thread in Java
 Extending Thread class
 Implementing Runnable interface

Methods of Thread class
 getName()
 getPriority()
 isAlive()
 join()
 run()
 sleep()
 start()
Рекомендации по теме
Комментарии
Автор

Ur explanation is very useful to us...
Ths a lotzzz😊

sangavi.r
Автор

Single thread and multithread useing example program venu mam

a.siddhartha.siddharth
Автор

Intrupting threads in java.... Explain panuga mam please

nishavenkat
Автор

Mam, i want the continuation of this video

sathiya.t
welcome to shbcf.ru