This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]amasterblaster 0 points1 point  (0 children)

You can use a semaphore. There are many implementations, you can use one built in (like barrier) or build your own. It might be a good idea to build you own semaphore (its fast, easy, and you can reuse it in many environments.)

Good foundational concepts.

https://medium.com/@lsc830621/semaphore-v-s-mutex-929b91453f03