Skip to content

Instantly share code, notes, and snippets.

@pruet
Created January 23, 2019 15:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pruet/07510645b41e8fc549a0996b1ad75250 to your computer and use it in GitHub Desktop.
Save pruet/07510645b41e8fc549a0996b1ad75250 to your computer and use it in GitHub Desktop.
HW2 Go to barrier
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