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

Magnitude comparator, circuit diagram of 2 bit magnitude comparator

circuit diagram of 2 bit magnitude comparator

What are shift registers, What are shift registers? Design a 8 bit shift re...

What are shift registers? Design a 8 bit shift register with features like PISO, SISO, SIPO and PIPO.

Clampers.., plz give ans about signs of capicitor, and give detail about cl...

plz give ans about signs of capicitor, and give detail about clampers.

Pdc, disadvantages of shunt&series clippers

disadvantages of shunt&series clippers

Edge detector, Edge detector  Apply the Canny edge detector to image c...

Edge detector  Apply the Canny edge detector to image class.png. To compute Canny edges:      help edge     edge(im,'canny',[thres1 thres2],sigma) (i) Compute edges for

Transfer characteristics of p-channel enhancement mosfet, Q. Explain the dr...

Q. Explain the drain and transfer characteristics of P-channel enhancement MOSFET. In p-channel enhancement MOSFET here is a n-type substrate and p doped regions under drain an

Illustrate common emitter configuration, Illustrate Common Emitter configur...

Illustrate Common Emitter configuration, current amplification factor and collector amplifier. Describe transistor as an amplifier.

Torque required to turn a self excited generator, Work must be done against...

Work must be done against the electromagnetic torque in order to generate the voltage (and current) supplied to the electrical load connected to the generator. Therefore energy con

Determine the performance of the circuits, Many circuits, particularly ampl...

Many circuits, particularly amplifiers, use negative feedback (nfb) in order to function reliably. The nfb changes the performance of the circuit to which it is applied, in most ca

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