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

Determine the current for given capacitance values, Q. Consider the circuit...

Q. Consider the circuit of Figure. Determine and sketch i L (t) and v C (t) for capacitance values of (a) 1/6 F, (b) 1/8 F, and (c) 1 / 26 F. Note that the capacitance values ar

Discuss electrical properties of insulating materials, Discuss electrical p...

Discuss electrical properties of insulating materials. Electrical properties of an insulating material are As Follows: Insulation resistance - It is the property, through

Explain quantizing analog signals, Explain Quantizing Analog Signals? ...

Explain Quantizing Analog Signals? A common analog-to-digital conversion pipeline contains a spectrum limiter (a simple low-pass or bandpass filter), a sample and hold circuit

Ac circuits, AC Circuit: This topic explain the basic concepts of sing...

AC Circuit: This topic explain the basic concepts of single and three-phase ac system. Unit provides the thorough analysis and derivations as required by topics. Here we find

Conditional call instruction, Conditional Call Instruction Similar  to ...

Conditional Call Instruction Similar  to conditional  jump  instructions there are conditional call  instructions  also based on various  flags.

Calculate the normalized piecewise cubic spline curve, a) Define the blendi...

a) Define the blending function reparanetrization. b) Four position vectors P1[0 , 0], P2[1 ,1], P3[2 ,-1] ,P4[3, 0] are provided with tangent vectors P1'[1,1] and P4'[1,1]. Cal

Digital logic circuits, . In successive-approximation A/D converter, offset...

. In successive-approximation A/D converter, offset voltage equal to 1/2LSB is added to theD/A converter’s output. This is done to

Demodulation of ssb signals, Demodulation of SSB signals also requires the ...

Demodulation of SSB signals also requires the use of a phase-coherent reference. Figure shows the general configuration to demodulate the SSBsignal.Asmall carrier component, which

Demagnetizing and cross magnetizing effects , Q.   What do you understand b...

Q.   What do you understand by demagnetizing and cross magnetizing effects of armature reaction in a d.c. machine. Derive the expression for calculation of demagnetizing and cross

Microprocessor, distingish between maximum and minimum modes of operations ...

distingish between maximum and minimum modes of operations of 8086 with timing diagrames

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