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

Compute the number of electrons that pass a given point, Q A wire with n = ...

Q A wire with n = 10 30 electrons/m 3 has an area of cross section A = 1mm 2 and carries a current i = 50 mA. Compute the number of electrons that pass a given point in 1 s, and

Find the power supplied by the voltage source, Find the power supplied by t...

Find the power supplied by the voltage source and the power absorbed by the 24 Ω resistor (R3) in the circuit shown below:   Determine the voltage V2 in the circuit shown.

How does voice one dsl work?, Question 1 Define the term telecommunication...

Question 1 Define the term telecommunication? Discuss briefly the various uses of telecommunication in daily life Question 2 Explain the powers and functions of the TRAI

Induction motor, A very widely used alternative form of synchronous motor i...

A very widely used alternative form of synchronous motor is the  ' indu c tion motor'. This has the advantage that it does not require an auxiliary motor to run the rotor up t

Bode plot phase ad gain margin, Using Bode plot calculate (a) Phase margin ...

Using Bode plot calculate (a) Phase margin (b) Gain margin (c) Stability of closed loop system. The open transfer function of the system is t=30/(s+2)/(s+3)Using Bode plot calcula

File flops - introduction to microprocessors, File Flops The flip fl...

File Flops The flip flop is a one storage biteable   device. The basic  bistable device stores a binary  of inputs  value. the flip flops  are categorized according  to the nu

High level language - third generation language , High Level Language ( thi...

High Level Language ( third Generation Language ) The difficulties of low  level  languages are overcome  by high  level languages. In  assembly  language  mnemonics  were used

Determine the bit-error probability for the two systems, Let both coherent ...

Let both coherent ASK and coherent PSK systems transmit the same average energy per bit interval and operate on the same channel such that E b /N 0 = 18. Determine the bit-error p

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