Can I implement the readers and writers algorithm in OpenMP by replacing counting semaphores with another feature?

Posted by DeveloperDon on Programmers See other posts from Programmers or by DeveloperDon
Published on 2012-08-18T09:17:55Z Indexed on 2012/11/04 23:17 UTC
Read the original article Hit count: 449

After reading about OpenMP and not finding functions to support semaphores, I did an internet search for OpenMP and the readers and writers problem, but found no suitable matches.

Is there a general method for replacing counting semaphores in OpenMP with something that it supports? Or is there just a gap in the environment where it does not permit things that are asymmetrical like the third readers and writers problem shown on the following page?

http://en.wikipedia.org/wiki/Readers-writers_problem#The_third_readers-writers_problem

© Programmers or respective owner

Related posts about multithreading

Related posts about concurrency