Description of clauses used in a parallel construct, Electrical Engineering

Assignment Help:

Q. Description of clauses used in a parallel construct?

When a thread comes across a parallel construct a set of new threads is made to execute parallel region. Inside the parallel region every thread has a unique thread number. Thread number of master thread is zero. Thread number of thread may be attained by call of library function omp_get_thread_num.  At this instant we are giving description of clauses used in a parallel construct.

(a) Private Clause: 

This clause declares one or more list items to be private to thread. The syntax of private clause is

                    private(list).

(b) Firstprivate Clause:

The firstprivate clause declares one or more list items to be private to thread and initializes every of them with value that corresponding original item has when construct is encountered. The syntax of firstprivate clause is like this:

                firstprivate(list).

(c) Shared Clause:

The shared clause declares one or more list items to be shared amongst all threads in a team. The syntax of shared clause is :

                shared(list)

 (d) Copyin Clause: 

The copyin clause offers a mechanism to copy value of master thread's threadprivate variable to the threadprivate variable of every other member of team executing parallel region. The syntax of copyin clause is :

              copyin(list)


Related Discussions:- Description of clauses used in a parallel construct

Explain two types of materials that are formed after doping, Explain the tw...

Explain the two types of materials that are formed after doping. Depending on the impurity added, extrinsic semiconductors can be then subdivided in two types of class: N-ty

Explain the working of direct memory access controller, Explain the various...

Explain the various modes in which DMAC works. Working of Direct memory access controller: The modes of operation has demand mode, block mode, single mode and cascade mode.

Power in balanced three-phase circuits, Power in Balanced Three-Phase Circu...

Power in Balanced Three-Phase Circuits The total power delivered by a three-phase source, or consumed by a three-phase load, is found simply by adding the power in each of the

What are difference equations, What are Difference Equations? A continu...

What are Difference Equations? A continuous-time system can be described by differential equations. Likewise, a discrete-time system can be explained by difference equations. T

Engineering, State the different stabilization techniques and compensation ...

State the different stabilization techniques and compensation techniques

Program analysis , Program Analysis We have to find the greater of two...

Program Analysis We have to find the greater of two given  number. We  can store the given  numbers  in two  different  registers ( suppose register A and B). Then we will com

Explain the operation of oscillators, Q. Explain the operation of oscillato...

Q. Explain the operation of oscillators. Oscillator is a circuit that changes dc energy from the power supply into ac energy. An amplifier provided with a positive feedback bec

Gis technology, GIS technology: GIS could be used to derive diverse in...

GIS technology: GIS could be used to derive diverse information for efficient technical and commercial management of a power distribution utility, e.g., capacity analysis, inv

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