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

#title., what is plane transmission grating/?

what is plane transmission grating/?

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

Encoder - introduction to microprocessors , Encoder The encoder is a...

Encoder The encoder is a logic  circuit  which  provides  the binary code is  output  for each input each input signal. In  other words  we can  say that it performs  just  op

Emf, what is emf

what is emf

Which realization requires the least number of gates, Q. Consider a 1-bit v...

Q. Consider a 1-bit version of the digital comparator shown in Figure. Note that the operation of this circuit is such that whichever output is 1 gives the desired magnitude compar

Equivalent circuit of a dc machine, Equivalent Circuit of a DC Machine ...

Equivalent Circuit of a DC Machine A review of the material presented with regard to elementary direct-current machines can be helpful at this stage to recall the principles of

Global positioning system, Global Positioning System: For power utilit...

Global Positioning System: For power utilities, the basic objective of using Global Positioning System (GPS) and GIS should be to: enhance the efficiency of transmissio

Determine current for a bjt, Q. For a BJT with vBE = 0.7V, I CBO = 4 nA, ...

Q. For a BJT with vBE = 0.7V, I CBO = 4 nA, i E = 1 mA, and i C = 0.9 mA, evaluate α, iB,iSE, and β.

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