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

Factors affecting choice of observation, Factors Affecting Choice of Obser...

Factors Affecting Choice of Observation: Observers are influenced by a number of factors in the process of observation. Black and champion have identified three such factors.

Frequency response of your amplifier, a) What is meant by frequency respons...

a) What is meant by frequency response and how would you check the performance of your amplifier? b) Calculate the Voltage Gain of your amplifier at a range of frequencies suffic

Poly phase induction motor, Using the approximate equivalent circuit in whi...

Using the approximate equivalent circuit in which the shunt branch is moved to the stator in put terminals, show that the rotor current, torque, and electro magnetic power of a pol

What are program invisible registers, What are program invisible registers?...

What are program invisible registers? The global and local descriptor tables are determined in the memory system. So as to access and give the address of these tables, the prog

Inductor, What will I write in Inductor conclusion

What will I write in Inductor conclusion

Explain a tube well, Q. Explain a Tube Well? Method of restoring or inc...

Q. Explain a Tube Well? Method of restoring or increasing the capacity of tube well is known as developing a Tube Wells. This is done to eliminate bridging of fine particles on

Explain open loop control systems, Explain Open Loop Control Systems In...

Explain Open Loop Control Systems In an open-loop control system, the controller independently computes exact voltage or current required by the actuator to do the job and send

Resistivity materials, explain the properties and the application of high r...

explain the properties and the application of high resistivity materials related with tunsten and carbon?

Centrifugal compressor, hi I need information of Compressor Shaft Impelle...

hi I need information of Compressor Shaft Impellers Coupling Hub Thrust Collars Balance Drum for centrifugal compressor with pecture

Energy stored in a magnetic field , Energy stored in a magnetic field ...

Energy stored in a magnetic field Consider a circuit consisting of a voltage supply,  switch,  resistor  and  a  coil  of  N turns wound on a toroid of length l, all in series

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