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

Change management in power distribution, Change Management in Power Distrib...

Change Management in Power Distribution: Organisational change might be described as an organisation-wide effort to augment the effectiveness of an organisation through str

Direct tapping and unmetered connections, Direct Tapping and Unmetered Conn...

Direct Tapping and Unmetered Connections Direct Tapping Direct tapping of power by non-customers is widely prevalent. This is mainly in domestic and agricultural categori

Determine the form factor and peak factor, Determine the form factor and pe...

Determine the form factor and peak factor: Determine the form factor and peak factor for the above half rectified wave. Solution From the above example, I rms   =

Show applications for dc machines, Q. Show Applications for DC Machines? ...

Q. Show Applications for DC Machines? Dc motors find wide applications in which control of speed, voltage, or current is essential. Shunt motors with constant speed are used fo

Calculate the monthly electric bill, Calculate the monthly electric bill fo...

Calculate the monthly electric bill for TESTU.  Metering is as follows: B 00,000 kWHr C 00,000   kVARHr D 0,000        kW  peak demand Facilities Charge = $500

Explain briefly programmable interval timer 8254, Explain with proper diagr...

Explain with proper diagram all the six modes of operation of programmable interval timer 8254. Mode 0: The output in mode 0 is initially low, and will stay low for the perio

Frequency modulation, 1. Frequency Modulation theory and its explanation ...

1. Frequency Modulation theory and its explanation 2. FM transmitter schematic, tests results and measurements 3. Amplifier and Oscillator circuit explanation and calculation

Activities to preparing long-term plans, Activities to Preparing Long-term ...

Activities to Preparing Long-term Plans 1. Data collection regarding existing loads, forecast of expected loads, operating conditions, and etc. from Grid substation up to cons

What are the constructional features of dc machines, Q. What are the Constr...

Q. What are the Constructional Features of DC Machines? Adc generator ormotormay have asmany as four fieldwindings, depending on the type and size of the machine and the kind o

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