13.8 Multithreading InterThread Communication | Producer Consumer

preview_player
Показать описание
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.

Follow on Facebook:

Subscribe to our other channel:
Telusko Hindi :

Subscribe to the channel and learn Programming in easy way.

Рекомендации по теме
Комментарии
Автор

youre an excellent teacher. After watching some 10 videos I know for sure Ill learn java.Earlier I used to hate programming coz I didnt understand properly.Thankyou for increasing my Interest sir. Great teaching . :-)

himanimishra
Автор

Can't explain simpler than this. All videos on thread are great.

karthee_k
Автор

There are so many tutorials on Multi Threading but I found your explanation as the best one.

ahmadazeem
Автор

Thank you so much
It cleared everything

AbhigyanGautam
Автор

can someone briefly explain the logic line by line from the start because i am a bit confused with the program when it reaches the while statements i class Q

dragonrojude
Автор

seedhi baat no bakwaas! Great Explaination.

Mukund_Pandey
Автор

Hi, Didn't understand the usage of notify function . i tried to run the program without the notify() function and it runs properly .

prateekbhatnagar
Автор

Can you implement dining philosopher problem using threads.

yatharthrathore
Автор

Navin Sir, thank you so much. You know, juggling up with so many threads threads in my JavaFx pong game. I wish I had someone like a mentor to me in Java. Your videos are there but I don't know how can I connect you if I get in to some problem which I can't find over google. Still, thank you so much for your videos. Half of Java and Python, I have learned from you.

Waiting if you have some forum where I can connect you.

karishmasukhwani
Автор

It was great!
Some people want to get everything ready, so why are you programmer?!
It was really helpful thx!

Fi
Автор

Very good example for learning this concept. Thank you Navin !!

sagar
Автор

What is the best way to study RX Java? Any sugestions

anshulgupta
Автор

Really good job.. thnx fr the videos..

bharatarora
Автор

thankyou very much!! now i solved my problem

lionciomorcilla
Автор

very great explanation.. but i have a doubt why do you use while(setValue) instead we can use if(setvalue) ??? rply

satyendrasingh-ohmp
Автор

Only we have to use synchronised method Instead of doing other hard stuff ... Try

vishaltanawade
Автор

Subscribed and will surely donate once i get my first salary. This guy deserves it for his work.

krishnabangari
Автор

if you guys know all of these, then what the hell youre doing here?

Moe.firouzabadi
Автор

this course Is great, thank you so much. awesome!

mohsentavakoli
Автор

Sir, u have explained it very nicely.

bichitrasahoo