What is work-sharing constructs, Electrical Engineering

Assignment Help:

Q. What is Work-Sharing Constructs?

A work-sharing construct distributes execution of associated region amongst the members of team which encounters it. A work-sharing construct doesn't launch new threads.

OpenMP defines three work sharing constructs: for, single and sections. In all of these constructs there is an implicit barrier at the end of construct unless a nowait clause is included.

(a) Sections

The sections construct is a no iterative work sharing construct which causes structured blocks to be shared among threads in team. Every structured block is executed one time by one of threads in team. The syntax of portions construct is:

#pragma omp sections [set of clauses.] 

{

 #pragma omp section 

 structured-bloc  

#pragma omp section 

structured-block 

.

.

}

The clause is one of the following:

private(list)

firstprivate(list)

lastprivate(list)

reduction(operator: list)

nowait


Related Discussions:- What is work-sharing constructs

Conditions in which rc circuit behaves as integrator, Q. Explain the condit...

Q. Explain the conditions under which an RC circuit behaves as Integrator? Integrator is a circuit in which the output voltage is proportional to the integral of the input. Out

Explain junction transistors (npn and pnp), Explain junction transistors (n...

Explain junction transistors (npn and pnp). Junction Transistor: This transistor consists of two p-n junctions combined in one crystal as demonstrated in figure below.

Find the current flow through resistor using norton theorem, Use Norton Th...

Use Norton Theorem, find the current flow through resistor R=10Ω.

Determine the dielectric constant of air in practically, The dielectric con...

The dielectric constant of air is practically taken as (A) more than unity.                         (B) Unity.  (C) less than unity.                           (D) Zero.

Calculate critical angel and fundamental gaussian mode, (1) An argon ion la...

(1) An argon ion laser, emitting light at a wavelength of 488nm with a beam divergence of 150 firad, is used to illuminate the moon. (i) Assuming the earth-to-moon distance is 3

Electric current, Electric current   Electric current is a flow ...

Electric current   Electric current is a flow of electrons. Each electron carries a very small amount of negative charge (1.6 x 10 -19 coulombs)   A current

Determine the number of bits of a natural binary encoder, Determine the num...

Determine the number of bits of a natural binary encoder that works with the quantizer: a) If the extreme levels are ±3.1 V, with a step size of 0.2 V. (b) If there are 128 q

Find resistance when the bridge is balanced, Q. Consider the bridge circuit...

Q. Consider the bridge circuit given in Figure with R 1 = 24 k, R 2 = 48 k, and R 3 = 10 k. Find R when the bridge is balanced with V = 0.

Write Your Message!

Captcha
Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd