Тёмный

SCOPRI ADESSO come fanno a coordinarsi i THREAD: Introduzione ai Java MONITOR 🔒💻 

CodeBrothers
Подписаться 2,9 тыс.
Просмотров 205
50% 1

Episodio 128: In questo Java TUTORIAL del nostro CORSO JAVA ITA scopriremo cos'è un MONITOR e come ci aiuta ad ottenere la sincronizzazione e la cooperazione tra i threads!
_Capitoli_
0:00 Intro
0:25 Cos'è un monitor
1:50 Ownership
2:48 Due tipi di sincronizzazione
3:44 Il monitor come edificio
5:12 Mutua esclusione
8:58 Cooperazione
12:00 Outro
_Puntata sui blocchi_
• Le LAMBDA Expressions ...
👾 __Entra nella community Discord__👾
/ discord 🤝
_Crediti canzoni utilizzate__
Extreme Sport Trap Music | PISTA by Alex-Productions | onsound.eu/
Music promoted by www.free-stock-music.com
Creative Commons / Attribution 3.0 Unported License (CC BY 3.0)
creativecommons.org/licenses/...
Trap Sport Gaming Music | PLAY THIS GAME by Alex-Productions | onsound.eu/
Music promoted by www.free-stock-music.com
Creative Commons / Attribution 3.0 Unported License (CC BY 3.0)
creativecommons.org/licenses/...
Awake by yoitrax | / yoitrax
Music promoted by www.free-stock-music.com
Creative Commons / Attribution 3.0 Unported License (CC BY 3.0)
creativecommons.org/licenses/...
Orchestral Funky Hip-Hop Beat by Glitch | / glitch
Music promoted by www.free-stock-music.com
Creative Commons / Attribution 3.0 Unported License (CC BY 3.0)
creativecommons.org/licenses/...
Cosmos by yoitrax | / yoitrax
Music promoted by www.free-stock-music.com
Creative Commons / Attribution 3.0 Unported License (CC BY 3.0)
creativecommons.org/licenses/...
VLOG by Alex-Productions | onsound.eu/
Music promoted by www.free-stock-music.com
Creative Commons / Attribution 3.0 Unported License (CC BY 3.0)
creativecommons.org/licenses/...
Trend by Alex-Productions | onsound.eu/
Music promoted by www.free-stock-music.com
Creative Commons / Attribution 3.0 Unported License (CC BY 3.0)
creativecommons.org/licenses/...
Hot Pepper by Alex-Productions | onsound.eu/
Music promoted by www.free-stock-music.com
Creative Commons / Attribution 3.0 Unported License (CC BY 3.0)
creativecommons.org/licenses/...
Sport Trap Music | LUXURY by Alex-Productions | onsound.eu/
Music promoted by www.free-stock-music.com
Creative Commons / Attribution 3.0 Unported License (CC BY 3.0)
creativecommons.org/licenses/...
LIFE CONTROL by Lesion X | / lesionxbeats
Music promoted by www.free-stock-music.com
Creative Commons / Attribution 3.0 Unported License (CC BY 3.0)
creativecommons.org/licenses/...
Ravana by yoitrax | / yoitrax
Music promoted by www.free-stock-music.com
Creative Commons / Attribution 3.0 Unported License (CC BY 3.0)
creativecommons.org/licenses/...
#java #tutorial #programmazione

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

 

21 июл 2024

Поделиться:

Ссылка:

Скачать:

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

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 4   
@mattiasindoni4461
@mattiasindoni4461 8 дней назад
Dovevo giusto preparare l'esame di concorrente e distribuita
@CodeBrothers
@CodeBrothers 8 дней назад
@@mattiasindoni4461 Ciao Mattia! Ahaha grandeee sei riuscito a trovare almeno qualche risposta ai tuoi dubbi? 🙌
@mattiasindoni4461
@mattiasindoni4461 8 дней назад
@@CodeBrothers Diciamo che ho le idee più chiare dove andare ad effettuare le operazioni di gestione con wait, notify e notifyall, per garantire quindi la mutua esclusione dei Thread. Prima facevo confusione, ma ora ho compreso che principalmente, nella gestione della concorrenza di una classe, devo andare ad operare nella classe monitor, in modotale da gestirla. Poi, sempre in merito a dubbi che avevo, io mi sento più confident ad utilizzare le synchronized non dell'intero blocco ma solo di una porzione del codice, quindi anche in questo caso ho avuto una piccola conferma. L'unica mia perplessità riguarda ad esempio l'utilizzo dei semafori al posto delle wait e notify, e cercare di non far andare in deadlock/starvation il programma, ma quantomeno di questa parte mi sono tolto un bel dubbio
@CodeBrothers
@CodeBrothers 8 дней назад
@@mattiasindoni4461 siamo veramente felici di sentirtelo dire poiché questa parte è poco conosciuta nonostante sia fondamentale e pian piano sta venendo scoperta ☀️ Giusto a scanso di equivoci, cosa intendi che andrai ad agire sulla classe monitor? (Ogni object possiede wait e notify) Infine magari per darti una dritta i semafori sono per situazioni un po' più generiche e facili da usare, i metodi notify and wait invece per ottenere un controllo a livello molto più basso e sono un po' più complessi 🦀
Далее
D3 BMW XM LABEL Король.
31:52
Просмотров 296 тыс.
СДЕЛАЛА БРЕКЕТЫ ДОМА
01:01
Просмотров 1,2 млн
Django или FastAPI - кто быстрее?
35:35
Просмотров 14 тыс.
Multithreading in Java Explained in 10 Minutes
10:01
Просмотров 895 тыс.