Skip to content

An exercise in safe multi-threading. A 'choir' of bells that plays songs.

Notifications You must be signed in to change notification settings

AndrewJohnson150/BellChoir

Repository files navigation

BellChoir

How I Met the Goals of Lab 2

  • My program reads and validates a file.
  • Each ChoirMember can have multiple of the same note, but only one.
  • I ensure this by using a hashMap to check which notes have already been mapped to a choir member.
  • Each ChoirMember runs on its own thread.
  • By using the Conductor as a mutex, I ensure only one thread is playing at a time.
  • The BellNote is passed to a Choir Member so that it may be played, along with the turn it should be played at.

Challenges

I was hoping to do the harmony task as well but just didn't have the time for it. The biggest challenge for me was making sure they played in the right order, and I'm sure there's a better way to do it than how I did it.

About

An exercise in safe multi-threading. A 'choir' of bells that plays songs.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages