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

Various steps in designing the counter, Design a mod-15 counter. Explain th...

Design a mod-15 counter. Explain the various steps in designing the counter

Explain memory mapped i/o scheme, Explain Memory Mapped I/O Scheme. Me...

Explain Memory Mapped I/O Scheme. Memory Mapped I/O Scheme: In such scheme there is only one address space. These address space is defined as all possible addresses which m

Applications of holography, Applications of holography 1.       Hologra...

Applications of holography 1.       Holography is used in the non-destructive tests by interferometic methods. In this method called double exposure holographic interferometry,

Applications of operational amplifiers, Q. Applications of operational ampl...

Q. Applications of operational amplifiers? An op amp along with a few external components (resistors and capacitors) is capable of performing many different operations-hence th

Determine the h-parameters for the circuit, Q. Determine the h-parameters f...

Q. Determine the h-parameters for the circuit shown in Figure and obtain the transfer function V 2 /V 1 when I 2 = 0.

Define branch prediction logic in pentium, Define branch prediction logic i...

Define branch prediction logic in Pentium. Branch prediction logic in Pentium: The Pentium microprocessor utilizes branch prediction logic to decrease the time required for a

Emf, what is emf

what is emf

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