Skip to content

Instantly share code, notes, and snippets.

@vladak
Created January 9, 2018 09:43
Show Gist options
  • Save vladak/eb0cf262a09b5f9e01a7b4d5b1bbb88e to your computer and use it in GitHub Desktop.
Save vladak/eb0cf262a09b5f9e01a7b4d5b1bbb88e to your computer and use it in GitHub Desktop.
tasks:
- rewrite queue-simulation.c to use RW locks
- add another thread that will print the number of items
in the queue less frequently than the main thread
- run atomic-add in multiple modes, compare the results
- write pthread_barrier impl
- start with phtread_barrier_t, pthread_barrier_wait()
- rewrite semaphores/posix-sem-fixed-race.c to use unnamed
semaphores. Are they kernel persistent ?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment