Created
January 23, 2019 15:40
-
-
Save pruet/07510645b41e8fc549a0996b1ad75250 to your computer and use it in GitHub Desktop.
HW2 Go to barrier
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Instruction | |
1. Implement barrier, as in Slide week 3 page 28, in Go by using channel. | |
2. Also, write a function to test your work by creating a few coroutine, then let them synchronize using barrier. | |
3. You can install Go in your computer, or use https://play.golang.org/ for coding and testing | |
4. Submit your work by post it in pastbin.com or github's gist, then submit the link to your post. | |
Grading criteria | |
1. Barrier can synchronize coroutine (3pts) | |
2. No shared variable used (2pts) | |
3. Implement both PulseAll and Wait for monitor (2pts) | |
4. No spinlock (1pts) | |
Due date: | |
Feb 7, 2019 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
https://gist.github.com/aunpyz/b94a78031c7708d2d920cdabfef7c1a8
580610689