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 service and backwash rates, Determine the Service and Backwas...

Determine the Service and Backwash Rates The system on site is a pressure sand filter, with a service curve. The filter is backwashed using the feed pump, at a higher flow rat

Compute the maximum flux passing through the coil, Q. The 50-turn coil in t...

Q. The 50-turn coil in the configuration of Figure is rotated at a constant speed of 300 r/min. The axis of rotation is perpendicular to a uniform magnetic flux density of 0.1 T. T

Help assignments, A three-phase transposed line is composed of one conducto...

A three-phase transposed line is composed of one conductor per phase with flat horizontal spacing of 11 m as shown in Figure 1(a). The conductors have a diameter of 3.625 cm and a

Combination of uni-selectors and two motion selectors, Q Using a combinatio...

Q Using a combination of Uni-selectors and two motion selectors, draw a diagram of thousand line exchange and illustrate its working. Ans: The diagram for such an exchange i

Speed control of dc series motor - motor control , Speed Control of DC Seri...

Speed Control of DC Series Motor A half  wave  circuit  for the  speed  control of DC  series motor is  shown in figure and corresponding wave from  is shown  in figure  consis

Measurement of frequency by wein''s bridge, Q.  Explain the measurement of...

Q.  Explain the measurement of frequency in detail by using Wein's bridge. Sol. The Wein's bridge is presented here not only for its use as an AC bridge to measure frequency

Merits and demerits of collector-to-base bias, Merits and Demerits of Colle...

Merits and Demerits of Collector-to-base bias: Merits: In this type of circuit the circuit stabilizes the operating point against differences in temperature and β (that i

State value of current flowing in the winding, The winding of an electromag...

The winding of an electromagnet has an inductance of 3H and a resistance of 15?. When it is connected to a 120 V d.c. supply, Determine: (a)  the steady state value of current f

Shocly equation, I need to prove of shockly diode equation

I need to prove of shockly diode equation

..analong course design, Askhigh precision linear amplifier question #Mini...

Askhigh precision linear amplifier question #Minimum 100 words accepted#

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