1.

How Does Open Mp Provide A Shared Memory Programming Environment?

Answer»

OpenMP USES pragmasto control AUTOMATIC creation of threads. Since the thread share the address space, they share memory. However, they are allowed a LOCAL view of the SHARED variables through “private” variables. The compiler allocates a variablecopy for each thread and optionally initializes them with the original variable. Within the thread the references to private variable are statically changed to the new variables.

OpenMP uses pragmasto control automatic creation of threads. Since the thread share the address space, they share memory. However, they are allowed a local view of the shared variables through “private” variables. The compiler allocates a variablecopy for each thread and optionally initializes them with the original variable. Within the thread the references to private variable are statically changed to the new variables.



Discussion

No Comment Found