[Java] Creating a Concurrent Counter with Locks (1/3)

Опубликовано: 23 Май 2020
на канале: Niels Kjær Faurskov
1,695
33

In this video series, we'll go through creating a very basic counter using with and without threads. I'll show you what happens when we initially run the counter non-thread-safe and how we can mitigate situations where race conditions occur, using built-in Java libraries.

0:00 - Introduction
0:40 - Creating the counter
7:42 - Race conditions
9:25 - Avoiding race conditions

In the next two videos, we connect the counter to a JavaFX interface and then run some unit tests to make sure everything works.


It's expected that you have already created a JavaFX application - if not, you can watch my video on that here:    • [Java] Setting up JavaFX with Maven i...  


Смотрите видео [Java] Creating a Concurrent Counter with Locks (1/3) онлайн без регистрации, длительностью часов минут секунд в хорошем качестве. Это видео добавил пользователь Niels Kjær Faurskov 23 Май 2020, не забудьте поделиться им ссылкой с друзьями и знакомыми, на нашем сайте его посмотрели 1,695 раз и оно понравилось 33 людям.