q describe critical directive in fortanthe


Q. Describe Critical Directive in FORTAN?

The critical directive permits one thread executes associated structured block. When one or more threads attain critical directive they would wait till no other thread is executing the same critical section (one with the same name) and then one thread would carry on to execute structured block. The syntax of critical directive is 

#pragma omp critical [name]

structured_block

name is optional. All critical sections with no name are regarded as to be one undefined name.

Request for Solution File

Ask an Expert for Answer!!
Computer Engineering: q describe critical directive in fortanthe
Reference No:- TGS0324010

Expected delivery within 24 Hours