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 the need for bias stabilization in bjt, Q. What is the need for bia...

Q. What is the need for bias stabilization in BJT? BJT or bi-polar junction transistor is a three terminal, two junction semiconductor device and the conduction is due to the m

Transformes, how to calculate the sending line voltage

how to calculate the sending line voltage

Basic macroeconomic policy trilemma for open economies, Q. Explain th...

Q. Explain the basic macroeconomic policy trilemma for open economies. Answer: Of three goals mainly countries share - independence in financial policy and stability in t

Illustrate power semiconductor devices, Q. Illustrate Power Semiconductor D...

Q. Illustrate Power Semiconductor Devices? Since the advent of the first thyristor or silicon-controlled rectifier (SCR) in 1957, tremendous advances have been made in power se

Calculate the approximate donor binding energy, Calculate the approximate d...

Calculate the approximate donor binding energy Calculate the approximate donor binding energy for Si (r = 11.7,m x n = 1.18 m 0 ) Solution: From E= m * n q 4 / 2(4 πε 0

Differences between a timer and a counter, Question : a) Embedded Syste...

Question : a) Embedded Systems will be Hard Real-Time Systems, Soft Real-Time Systems and Hybrid Real-Time Systems. Briefly explain all three types of Real-Time Systems, using

Find the force-current analog as well as the force voltage, Q. (a) The c...

Q. (a) The concept of duality can be extended to nonelectric physical systems bymeans of analogs. For example, the mechanical system characteristics can be investigated by means

Customer indexing, Customer Indexing: Customer indexing (CI) is a meth...

Customer Indexing: Customer indexing (CI) is a method for enumerating the total number of consumers in a utility and tagging them to their respective poles, transformers and f

Sub subtract instruction, SUB Subtract Instruction This  instruction  i...

SUB Subtract Instruction This  instruction  is used to  subtract the contents of any  register  or memory location from  the contents of  accumulator. There are two  formats as

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