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

Description of clauses used in a parallel construct, Q. Description of clau...

Q. Description of clauses used in a parallel construct? When a thread comes across a parallel construct a set of new threads is made to execute parallel region. Inside the para

Determine maximum length for cable, You have been asked to help on the desi...

You have been asked to help on the design of CDU's new electric vehicle. The vehicle is to be powered by a 96V, 300A battery pack and you need to decide on the maximum length you c

What are the features used mode 2 in 8255, What are the features used mode ...

What are the features used mode 2 in 8255? The single 8-bit port in-group A is available. 1. The 8-bit port is bi-directional and additionally a 5-bit control port is availa

Determine the maximum value of the voltage induced in coil, Q. A 10-turn sq...

Q. A 10-turn square coil of side 200 mm is mounted on a cylinder 200 mm in diameter. If the cylinder rotates at 1800 r/min in a uniform 1.2-T field, determine the maximum value of

PLC Programming, FIG. 2 Car Park Simulation Consider the above diagram, FI...

FIG. 2 Car Park Simulation Consider the above diagram, FIGURE 2, of the car park. The object of this assignment is to write a program to operate the barriers to allow the cars in

Dtl and ttl logic circuits, Q. DTL AND TTL LOGIC CIRCUITs? Bipolar tran...

Q. DTL AND TTL LOGIC CIRCUITs? Bipolar transistorswere the first solid-state switching devices commonly used to implement digital logic circuits in the 1950s and 1960s. These c

What are the constructional features of dc machines, Q. What are the Constr...

Q. What are the Constructional Features of DC Machines? Adc generator ormotormay have asmany as four fieldwindings, depending on the type and size of the machine and the kind o

Partial indicators method, Partial Indicators Method The partial indic...

Partial Indicators Method The partial indicators technique consists of calculating various measures of the financial, operating, commercial, and quality of a business's perfor

Show the block diagram for a 3-bit ripple counter, Q. (a) For a JKFFwith JK...

Q. (a) For a JKFFwith JK = 11, the output changes on every clock pulse. The change will be coincident with the clock pulse trailing edge and the flip-flop is said to toggle, when T

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