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

Embedded systems design, You have been requested by your Senior Engineer to...

You have been requested by your Senior Engineer to design an Engine Control Unit (ECU) and prepare a report detailing your proposed solution. The client requires a design for a mic

Basic circuit elements, Define inductance.Explain the classification of ind...

Define inductance.Explain the classification of inductors

Find the current flow through resistor using thevenin''s, Find the current ...

Find the current flow through resistor 12 Ω using Thevenin's Theorem.

Necessary conditions to maintain sustained oscillation, Q. What are the nec...

Q. What are the necessary conditions to maintain sustained oscillation? The use of positive feedback that results in a feedback amplifier having closed-loop gain |Af| greater t

Determine impedance in each branch - delta connection, Determine Impedance ...

Determine Impedance in each branch - delta connection: A delta connected balanced 3-phase load is supplied from a 3-phase 400 V supply. The line current is 30 Amp and the powe

States kirchoff''s voltage law, States Kirchoff's Voltage Law Kirchoff...

States Kirchoff's Voltage Law Kirchoff's Voltage Law (KVL) describes in any closed loop in a network, the algebraic sum Figure of the voltage drops (i.e. products of current

Feedback amplifier, #I want to get lecture notes on Electronic device.and c...

#I want to get lecture notes on Electronic device.and circuits .

Dc motors, costruction and working of dc motor

costruction and working of dc motor

Total debt to total assets ratio, Total Debt to Total Assets ratio A m...

Total Debt to Total Assets ratio A metric used to measure a company's financial risk by determining how much of the company's assets have been financed by debt. It is calculat

Find the value of frequency, Although the low side is not as good a choice ...

Although the low side is not as good a choice as the high-side local oscillator frequency, let an AM broadcast receiver be designed with a low-side local oscillator. As fc is varie

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