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

Why monitoring and control done, Why Monitoring and control done? Mo...

Why Monitoring and control done? Monitoring and control using microprocessors/computers is often done for the below reasons: - It is safer (faster response to non-standar

Determine the voltage at the load terminals, Two single-phase 60-Hz sinusoi...

Two single-phase 60-Hz sinusoidal-source generators (with negligible internal impedances) are supplying to a common load of 10 kW at 0.8 power factor lagging. The impedance of the

Chemistry, explain why entropy of a gas increases with volume and tempeart...

explain why entropy of a gas increases with volume and tempearture

Explain function of application layer, Q. Explain function of application l...

Q. Explain function of application layer? Layers of OSI model are as follows: (1) The Physical Layer: This defines an interface in terms of connections, voltage levels and

Installed in circuit board, Can we measure the resistor if it is installed ...

Can we measure the resistor if it is installed in circuit board? Ans) You can calculate a resistor in a circuit but the circuit will most likely affect the value read (general

Calculus, area bounded by the curve y=3x(x-2)^2 and the x-axis

area bounded by the curve y=3x(x-2)^2 and the x-axis

Electrons, Ask question #Minimum 100 words accepted how does the charge pla...

Ask question #Minimum 100 words accepted how does the charge plate relate to the movement of electrons

Performance mapping & implementation plan - power supply, Importance Perfor...

Importance Performance Mapping & Implementation Plan - Power Supply Another data presentation device in which several managers find appealing is the significance-performance m

Calculate turns ratio, A switch-mode power supply is to be designed with th...

A switch-mode power supply is to be designed with the following specifications: input voltage V s = 48 V ± 10%, output voltage V o = 5 V, switching frequency f s = 100 kHz, outp

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