Тёмный

Lecture 3, Unit 1: Introduction to condition variables and monitors 

Mike Swift
Подписаться 2,7 тыс.
Просмотров 54 тыс.
50% 1

CS 537, Spring 2013: introduction to monitors and condition variables.

Опубликовано:

 

4 июл 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 23   
@louielouie6724
@louielouie6724 8 лет назад
nice tutorial but why upload this in 240p? can't see the text very well.
@dp-mason
@dp-mason 4 года назад
It's people like you that empower me to pass my exams without a tutor. Thank you so much!
@bunnielovekins
@bunnielovekins 11 лет назад
This is pretty useful, thanks for uploading all these
@instant_mint
@instant_mint 6 лет назад
Very helpful video, even though the text is hard to read. I appreaciate it
@prathameshmestry9482
@prathameshmestry9482 7 лет назад
can i get the ppt as text is not visible
@adamhoffman2329
@adamhoffman2329 5 лет назад
Wish my teacher could make it this simple. Thank you!!!!!
@SandeepGurram810
@SandeepGurram810 11 лет назад
Very clear explanation... Thank you sir
@BiranchiNarayanNayak
@BiranchiNarayanNayak 9 лет назад
Nice tutorial.
@chloekimball536
@chloekimball536 5 лет назад
God bless you!
@LahiruGunathilake
@LahiruGunathilake 10 лет назад
Thanks a lot !
@thepeopleofblore
@thepeopleofblore 9 лет назад
can we get the PPT used in this video?
@a55tech
@a55tech 7 лет назад
why only 240p
@zwaywoo9494
@zwaywoo9494 5 лет назад
thanks a lot...
@mancesnowdon1757
@mancesnowdon1757 4 года назад
// General use of signal struct counter { int count; pthread_mutex_t lock; pthread_cond_t above_zero; }; void increment(struct counter *c){ pthread_mutex_lock(&c->lock); int n = c->count; c->count = n+1; pthread_cond_signal(c->above_zero); pthread_mutex_unlock(&c->lock); } void decrement(struct counter *c){ pthread_mutex_lock(&c->lock); int n = c->count; c->count = n+1; pthread_mutex_unlock(&c->lock); } void print_val(struct counter * c){ pthread_mutex_lock(&c->lock); if(c->count above_zero,&c->lock); } printf("Value = %d ",c->count); pthread_mutex_unlock(&c->lock); } /* Problem: no guarantee signal thread runs right away: * c->count = -1; * T1 : increment // c->ount = 0; * T2 : print_val // c->count = 0, waits * T3 : increment // c->count = 1, signals * T1 : decrement // c->count = 0 * T2 : wakes up // c->count = 0 WRONG */
@user-yi9ik9it4g
@user-yi9ik9it4g 7 месяцев назад
omg this is so helpful. Thank you!
@damieng7636
@damieng7636 10 лет назад
the resolution is terrible
@TokyoTransit
@TokyoTransit 6 лет назад
Resolution is terrible. You broke my eyes
@mertbahadr7678
@mertbahadr7678 2 года назад
Sir wtf is 240p video :(
@parhamdavari
@parhamdavari 7 лет назад
thank you so much for sharing all these but please speak just a little slower and more clear to let us think about
@xavierouvrard5166
@xavierouvrard5166 8 лет назад
The text can't be seen, and the flow is too quick and monocord
@rassulkhassen6603
@rassulkhassen6603 5 лет назад
Can you say one more time that major facility of the monitor is the mutual exclusion? If you would not repeat things 100 times, your video would have been lasting for 5 minutes
@kjangla
@kjangla 7 лет назад
Such a pathetic teacher this guy. Can put anyone to sleep.
Далее
Lecture 1, unit 1: Introduction to Concurrency
12:03
Просмотров 72 тыс.
Lecture 3, Unit 2: using condition variables
8:20
Просмотров 27 тыс.
Guess The Drawing! ✍️✨🧐 #shortsart
00:14
Просмотров 2,1 млн
Operating Systems Lecture 14: Condition variables
16:14
Processes and threads - Gary explains
7:36
Просмотров 132 тыс.
Synchronization 2: Monitors and Condition Variables
16:07
Lecture 1, unit 2: Races and synchronization
7:05
Просмотров 27 тыс.
Lecture 2, unit 1: Introduction to Semaphores
7:51
Просмотров 163 тыс.
OS Context Switching - Computerphile
14:49
Просмотров 109 тыс.
Unix system calls (1/2)
45:16
Просмотров 426 тыс.
Lecture 4, unit 2: conditions for deadlock
4:39
Просмотров 17 тыс.
"Clean" Code, Horrible Performance
22:41
Просмотров 865 тыс.