[Omp] data scope clause

Patricia Bittencourt Sampaio patricourt at yahoo.com.br
Thu Apr 28 10:53:38 PDT 2005


  Hello,

     I have been made some tests so as to check the
funcionallity of the scope clauses in particullar when
nested parallel regions are used with more than one
function envolved. 
     The question of private clause was clarified to
me. But the shared clause is still obscure.
     As Jose Luis said an interesting question is when
    the variables are passed by reference. That means
that only the pointers is shared among the threads but
not the area of memory that are pointed to.  
     I guess the only way so as to create a variable 
that is shared when some writes occured in a routine
outside is declaring that variable as global so as   
all routines recognize it. This solution does not need
that the variable has to be passed as a parameter and
all threads will be able to write it under critical
clause. 

     Any comments will be welcome. 

[]'s

Patrícia Bittencourt Sampaio
====================================
Federal University of Rio de Janeiro

 



__________________________________________________
Converse com seus amigos em tempo real com o Yahoo! Messenger 
http://br.download.yahoo.com/messenger/ 




More information about the Omp mailing list