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

Determine the voltage across resistor, Determine the voltage across the 20-...

Determine the voltage across the 20- resistor in the following circuit of Figure (a) with the application of superposition.

What is resistivity, What is resistivity? Resistivity of a material ma...

What is resistivity? Resistivity of a material may be explained as the resistance of the material having unit length and also unit cross sectional area. Unit of it is ohm-m.

Princeton and harvard microprocessor architectures, Question a) Explain...

Question a) Explain, with the aid of diagrams, the differences between the Princeton and Harvard microprocessor architectures. b) Describe why the principle of locality of r

Introduction to electronics, Explain the difference between a microprocesso...

Explain the difference between a microprocessor and an embedded microcontroller

Open-loop control system, Q. Open-loop control system? An open-loop sys...

Q. Open-loop control system? An open-loop system is one in which the control action is independent of the output or desired result, whereas a closed-loop (feedback) system is o

Calculate the maximum power that transmitted to the load, Calculate the Max...

Calculate the Maximum Power That Transmitted To the Load? A 25 MW load at the 33 kV receiving-end busbar of a short 3-phase transmission line has a power factor of 0.8 lagging.

On line ups systems - power supplies , On line UPS Systems In this Ups ...

On line UPS Systems In this Ups  there are two  switches  one is  main static switch  and another  is Ups  static  switch . in normal  operation the Ups  static switch  remains

Data bus - bus organisation , Data bus The data  bus is the  group of 8...

Data bus The data  bus is the  group of 8 bit   used  to carry data. There  line are  bidirectional data can flow  in both  directions i e form  microprocessor to  peripherals

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