Specifies that one or more variables should be shared among all threads.
One more more variables to share. If more than one variable is specified, separate variable names with a comma.
Another way to share variables among threads is with the copyprivate clause.
shared applies to the following directives:
For more information, see 188.8.131.52 shared.
See private (OpenMP) for an example of using shared.