ejd wrote:There are two problems here.
First, the OpenMP ARB policy is to promote OpenMP - not do people's homework. While I am not a member of the ARB, since I am using their site, I will abide by their rules. I am not sure whether this is a homework problem or not, but it comes within that realm and as such I will only provide so much help.
ejd wrote:Second, you have not really provided enough information. For example, at what point do these threads get new values or how often do the values have to be checked?
You might try putting out some code with what you have tried. That makes it easier to address problems and ask questions.
billa wrote:Now i want to serealise read/writes to this variable ONLY if its value is same for any two threads. If the threads have different value for this variable, then they should work in parallel.
Users browsing this forum: Yahoo [Bot] and 11 guests