Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement POSIX semaphores #1

Open
jserv opened this issue Jun 6, 2015 · 0 comments
Open

Implement POSIX semaphores #1

jserv opened this issue Jun 6, 2015 · 0 comments

Comments

@jserv
Copy link
Owner

jserv commented Jun 6, 2015

POSIX semaphores allow processes and threads to synchronize their actions.

A semaphore is an integer whose value is never allowed to fall below zero. Two operations can be performed on semaphores: increment the semaphore value by one (sem_post); and decrement the semaphore value by one (sem_wait). If the value of a semaphore is currently zero, then a sem_wait operation will block until the value becomes greater than zero.

POSIX semaphores come in two forms: named semaphores and unnamed semaphores.

Initial implementation: https://github.com/MrHohn/cs518hw2/commits/sp15-hw2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant