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

Calculate the average length of the chain, The upper end of a hanging chain...

The upper end of a hanging chain is fixed whereas the lower end is attached to a mass M. The (massless) links of the chain are ellipses with major axes and minor axes l+a and l-

Find the turns ratio, Q A60-Hz, 100-kVA, 2400/240-V(rms) transformer is use...

Q A60-Hz, 100-kVA, 2400/240-V(rms) transformer is used as a step-down transformer from a transmission line to a distribution system. Consider the transformer to be ideal. (a) Fi

EMI, Ask question (c) Reduce each of the given signal transmission situatio...

Ask question (c) Reduce each of the given signal transmission situations to a source, coupling path(s), and receptor: (i) AM radio transmission to the human ear. (ii) TV transmis

What are the different types of patrolling, Q. What are the different types...

Q. What are the different types of Patrolling? When these are adopted? What are points to be considered while preparing the charts? Ans.- Types of Patrolling. 1. Keyman's

Gis application architecture, GIS application architecture: GIS applic...

GIS application architecture: GIS application architecture should 1  Give a framework and the essential programming interfaces to enable complex GIS applications to be deve

Compute the mutual inductance, Compute the mutual inductance: A long s...

Compute the mutual inductance: A long single layer solenoid has an effective diameter of 10 cm and it is wound with 1000 turns/m. There is a small concentrated coil with its p

Power distribution system, Power Distribution System The Distrib...

Power Distribution System The Distribution System contains: - Sub-transmission system in voltage ranges from 33 kV to 220 kV. The energy goes from power subs

Project, Design a DC motor control system to run the 48V DC motor at 40rpm ...

Design a DC motor control system to run the 48V DC motor at 40rpm up to max load of the motor. You are responsible for designing the control of a 24V supply along with the speed s

Explain the working of direct memory access controller, Explain the various...

Explain the various modes in which DMAC works. Working of Direct memory access controller: The modes of operation has demand mode, block mode, single mode and cascade mode.

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