Very complex tasks that require a lot of time. I didn't expect this. I really regret taking this course.
Justin SmithLevel 41, Greenfield, USA, United States
5 May 2022
Yeah, this stuff is getting pretty hard. But remember that when you started CodeGym, upon completion of a task you would find that thousands of other people had completed the task as well. But now we find that only 200-300 people have completed these tasks. If you're finishing these you're doing a lot better than almost everyone else who started.
Also, this is a very good resource showing the differences between CyclicBarrier, Phaser and CountDownLatch - https://www.youtube.com/watch?v=J3QZ5gfCtAg
These are some great links for the Java Phaser:
https://www.baeldung.com/java-phaser
https://www.geeksforgeeks.org/java-util-concurrent-phaser-class-in-java-with-examples/
https://docs.oracle.com/javase/8/docs/api/java/util/concurrent/Phaser.html
A hint for Plants vs Zombies:
The methods arriveAndDeregister() and arriveAndAwaitAdvance() need to be used in the start method - and they each need to be called only once.
GO TO FULL VERSION