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

Zener diode, how does a zener diode works

how does a zener diode works

Dc motor, why we rotate the armature of dc motor in anticlockwise direction...

why we rotate the armature of dc motor in anticlockwise direction

Phasor diagram, The aim of this question is to help you become familiar wit...

The aim of this question is to help you become familiar with phasor diagrams, and in particular to see how the diagram changes when one of the system parameters (in this case resis

Transient behavior of a control system, Q. Transient behavior of a control ...

Q. Transient behavior of a control system? The transient portion of the time response of a stable control system is that part which goes to zero as time increases and becomes s

Multiplexing 64-to-1 by using four 16-to-1 multiplexers, Q. Show an arrange...

Q. Show an arrangement for multiplexing 64-to-1 by using four 16-to-1 multiplexers and one 4-to-1 multiplexer.

Rar rotate accumulator right through carry instruction , RAR  Rotate Accum...

RAR  Rotate Accumulator Right Through Carry Instruction This instruction rotates the contents  of the  accumulator  towards right by  one bit. The D 7   bit moves to D 6 posi

Pop instruction, POP Instruction This instruction  copies the contents ...

POP Instruction This instruction  copies the contents  of the top  two locations  of the  stack into the  specified  register pair. The  contents  of stack pointer register are

Series connected motor, In this case, the armature is connected in series w...

In this case, the armature is connected in series with the field coils. Thus I a   = I f = I         NB. At starting, the back emf is zero (because the m

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