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

Band Pass active filter, How to design band pass active filer? Any software...

How to design band pass active filer? Any software avaialble

Functions of regulatory body, Functions of Regulatory Body Set sta...

Functions of Regulatory Body Set standards through setting codes, by miscellaneous orders, by license conditions and by directions in tariff orders; Determine the tari

Explain shockly''s equation and its significance, Q. Explain shockly's equa...

Q. Explain shockly's equation and its significance in plotting the transfer characteristics ? The linear relationship does not exists in the output of the JFET, the relationshi

Define electric current, Define Electric current If an electric pressur...

Define Electric current If an electric pressure or voltage is applied across any material there is a tendency for electrons to move in a certain direction. This movement of fre

Hexadecimal to binary conversion , Hexadecimal  to Binary Conversion ...

Hexadecimal  to Binary Conversion Conversion from  hexadecimal  to binary  is the  reverse  of this  process. Express each  hexadecimal  digit  in four bit  binary  equivalent

Integrated circuit with resistive feedback, principle of resistive feedback...

principle of resistive feedback circuit change when the square wave and triangular pulse frequencies, the amplitude of the triangle wave

Capacitors with electrical equipment, Capacitors : These are electrical co...

Capacitors : These are electrical condensers having a system of electrical conductors and insulators. The simplest form consists of two parallel metal plates separated by a layer

Determine the current in the diode, Q. Consider the circuit shown in Figure...

Q. Consider the circuit shown in Figure. Determine the current in the diode by assuming: (a) The diode is ideal. (b) The diode is to be represented by the model of Figure 7.2

Find the rms induced voltage, A two-pole, three-phase, 60-Hz, wye-connected...

A two-pole, three-phase, 60-Hz, wye-connected, round-rotor synchronous generator has N a = 12 turns per phase in each armature phase winding and flux per pole of 0.8Wb. Find the r

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