Q. Define Atomic Directive in FORTAN?
Atomic directive guarantees a specific storage location is updated atomically rather than exposing it to odds of multiple simultaneous writing threads. Syntax of atomic directive is
#pragma omp atomic
expression_statement
Atomic directive implements a significant section resourcefully when critical section basically updates a variable by arithmetic operation defined by expression_statement.