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

DLD, draw alogic diagramto implement F=ABCDE using only 3 inputAND gates

draw alogic diagramto implement F=ABCDE using only 3 inputAND gates

Explain cache structure in pentium, Explain cache structure in Pentium. ...

Explain cache structure in Pentium. Cache structure in Pentium: The cache in the Pentium has been changed by the one determined in the 80486 microprocessor. The Pentium has t

Determine the electromagnetic power, A dc shunt motor runs off a constant 2...

A dc shunt motor runs off a constant 200-V supply. The armaturewinding resistance is 0.4, and the ?eld winding resistance is 100 . When the motor develops rated torque, it draws

Show the interconnections and appropriate polarity markings, Q. Two 1150:11...

Q. Two 1150:115-V transformers are to be inter connected for (a) 2300:230-V operation, and (b) 1150:230-V operation. Show the interconnections and appropriate polarity markings.

Physics, high resistivity materials

high resistivity materials

Field Service Enginer, Give three reasons why a chamfer shouldn''t an "unim...

Give three reasons why a chamfer shouldn''t an "unimportant" dimension

Thunderstrom detector, Ask question #how to construct thunderstrom detector...

Ask question #how to construct thunderstrom detector with circuit breaker.

Avalanche breakdown region, Avalanche breakdown region: Even though th...

Avalanche breakdown region: Even though these regions are well described for sufficiently large applied voltage, they overlap somewhat for small (less than a few hundred milli

Linear and digital ics, write down the application of shift register and ex...

write down the application of shift register and explain it.

Electronics circuits 1, Explain and drive the expression for fixed bias and...

Explain and drive the expression for fixed bias and potential divider.

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