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

Forces and torques in magnetic-field systems, Q. Forces and torques in magn...

Q. Forces and torques in magnetic-field systems? We mentioned earlier that the greater ease of storing energy in magnetic fields largely accounts for the common use of electrom

Analog, why h parameter used in low frequency transistor amplitfier

why h parameter used in low frequency transistor amplitfier

Factors affecting frequency response of an amplifier, Q. What is their rela...

Q. What is their relation with gain? What are the factors affecting frequency response of an amplifier? Some amplifiers should be "flat" across a band of frequencies. In other

Explain working of biased clamper, Q. Explain working of Biased Clamper? ...

Q. Explain working of Biased Clamper? Biased Clamper : The circuit of a positively biased clamper is shown in the figure. During the negative half cycle of the input signal the

Evaluate parameters of a bjt, Q. The parameters of a BJT are given by α = 0...

Q. The parameters of a BJT are given by α = 0.98, I CBO = 90 nA, and i C = 7.5 mA. Find β, iB, and iE.

Construction features of electron gun, Compare the application of CO 2 and...

Compare the application of CO 2 and Nd :YAG Laser for cutting operation. Define with a neat and clean diagram the construction features of ‘electron gun' used for preparing an

Discuss properties and uses of glass and glass products, Discuss important ...

Discuss important properties and uses of Glass and glass products. Glass and glass products - Glass is an inorganic material build by the fusion of various metallic oxides. The

Digital Electronics, Design a MOD-6 synchronous counter using T Flip-Flops....

Design a MOD-6 synchronous counter using T Flip-Flops.

Principle of three-phase synchronous machines, Q. Principle of Three-phase ...

Q. Principle of Three-phase synchronous machines? In fact, with very few exceptions, three-phase synchronous machines are most commonly used for power generation. In general, t

Write short note on quantization, Q. Write short note on Quantization? ...

Q. Write short note on Quantization? Quantization: This is first step in PCM. Total amplitude range of the modulating signal is divided into a number of standard levels calle

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