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

Two byte instructions , Two byte  Instructions In these  instruction ...

Two byte  Instructions In these  instruction the first byte  specifies  the operations code  and the  second byte  specifies the operand. To identify  two byte  instructions o

Data transmission in bus topology, Q. Data transmission in Bus Topology ? ...

Q. Data transmission in Bus Topology ? Bus Topology:This topology shares a single path or link way among all users. This common single path way is called bus. In this topology,

OSILATOR, COULD U INTERDUCE AN OSILATOR THAT MAKES TRIANGULAR AND SIN WAVE?...

COULD U INTERDUCE AN OSILATOR THAT MAKES TRIANGULAR AND SIN WAVE?

Digital communications system, Question 1 (a) Describe the functions of...

Question 1 (a) Describe the functions of the modulator and source encoder in a digital communications system. (b) By using appropriate examples, distinguish between th

Ac, power factor improvement

power factor improvement

Explain temperature dependency in semiconductors, Explain temperature depen...

Explain temperature dependence of electrical resistivity and conductivity in semiconductors. The electrical conductivity of the semiconductors changes considerably with temper

Explain n-type and p-type semiconductors, Explain n-type and p-type semicon...

Explain n-type and p-type semiconductors. n - Type semiconductor: If small amount of pentavalent impurity (group V elements) is added to a pure semiconductor giving a large

Determine the speed of the motor, Q. A 10-kW, 250-V dc shunt generator, hav...

Q. A 10-kW, 250-V dc shunt generator, having an armature resistance of 0.1and a field resistance of 250 , delivers full load at rated voltage and 800 r/min. The machine is now ru

Discuss need of pipelining, Discuss need of Pipelining. The simplest m...

Discuss need of Pipelining. The simplest method for improving performance by hardware parallelism is pipelining. Pipelining has breaking up the operations to be performed in s

Working principle of an electronic voltmeter, Q.   Explain the working prin...

Q.   Explain the working principle of an electronic voltmeter. Sol. Electronic voltmeter Basic Voltmeter: The addition of a series resistor, or multiplier, converts the

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