2 ! Find or create the same unit number in concurrency,
3 ! at beginning, threads cannot find the unit in cache or unit list,
4 ! then threads will acquire the write lock to insert unit.
5 ! This test case is used to ensure that no duplicate unit number will be
6 ! inserted into cache nor unit list when same unit was accessed in concurrency.
11 !$omp parallel private (i)
13 open (10, file
='tst.dat', asynchronous
="yes")
14 ! Delete the unit number from cache and unit list to stress write lock.
15 close (10, status
="delete")