Producer Consumer Problem In Java Using wait and notify | Complete Multithreading Series Ep 9

preview_player
Показать описание
In this video we learn about "the implementation of the Producer Consumer Problem In Java Using wait and notify". Multithreading is a very important concept that every serious developer should be well versed with. This video is a part of the playlist on Complete Multithreading tutorial series, link for the same is given below. Please do watch it and I am sure you'd learn lots of useful concepts :)

----------------------------------------------------------------------------------------------------------------------

Next Video :

----------------------------------------------------------------------------------------------------------------------

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

I read somewhere, that it is always advised to put wait in some sort of conditional while-loop. But in this example as it is being notified from both ends we can omit that rule.

softrical
Автор

Does it not having kind of busy waiting, because at one time either consumer is running until it reach empty or producer is running until it reach limit.. Means things are not happening concurrently, it is giving like sequential feel.

Raghav_
welcome to shbcf.ru