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

What is command, A selection form an application's menu, or a command typed...

A selection form an application's menu, or a command typed in by the user, like at a DOS prompt or at the Run dialog box in Windows.

Wye -delta conversion, how to write theory background on practical about t...

how to write theory background on practical about this topic.

Compute the efficiency of the transformer, Compute the efficiency of the tr...

Compute the efficiency of the transformer of Example corresponding to (a) full load, 0.8 power factor lagging, and (b) one-half load, 0.6 power factor lagging, given that the input

Capacitor.., #Explain charging and discharging of the capacitor ..

#Explain charging and discharging of the capacitor ..

Discuss direct memory access, Discuss DMA definition. Direct memory ac...

Discuss DMA definition. Direct memory access (DMA) is a process wherein an external device takes over the control of system bus by the CPU. Direct memory access is for high-sp

#DSP ., #The requirement is as follows- There is a signal which is in the r...

#The requirement is as follows- There is a signal which is in the range of 0 to 5Hz. This signal frequency composition is to determined. The resolution of the determination is 1Hz.

Superposition theorem, how do you work it out if there are 3 sources in par...

how do you work it out if there are 3 sources in parallel?

Mixed bonding, Mixed Bonding Displayed by III-V compounds bonding p...

Mixed Bonding Displayed by III-V compounds bonding partly ionic and partly covalent. Ionic character of bonding becomes much more prominent since the constituent atoms m

Describe 74ls139 memory decoder, Describe 74LS139 memory decoder. The 7...

Describe 74LS139 memory decoder. The 74LS139 is a dual 2-to-4 line decoder. This contains two separate 2-to-4 line decoders - all with its address, output and enable connection

Binary coded decimal addition, Q. Binary Coded Decimal Addition Now as ...

Q. Binary Coded Decimal Addition Now as in conventional decimal addition, Binary Coded Decimal addition is performed one decimal digit at a time. What happens when the sum g

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