InterviewSolution
Saved Bookmarks
| 1. |
Consider the following networks (n is large): (2DH): A 2D-mesh of n nodes having size n1/2 x n1/2 (3DM): A 3D-torus of n nodes having size n1/3 x n1/3 x n1/3 (HYP): A hypercube of n nodes (CLIQ): A complete network of n nodes The arrangement of the networks in increasing order of diameter is: |
|
Answer» The answer is 4. The omp_get_num_threads() function will be returning the number of threads present in the TEAM which is CURRENTLY running in the parallel region from which the particular thread was CALLED. If the omp_get_num_threads() is called from a serial portion or nested parallel region in the PROGRAM which is SERIALIZED, 1 will be returned. |
|