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 flux densities, In the magnetic circuit shown in Figure (a) t...

In the magnetic circuit shown in Figure (a) the coil of 500 turns carries a current of 4 A. The air-gap lengths are g 1 = g 2 = 0.25 cm and g 3 = 0.4 cm. The cross-sectional are

Find an expression for the power absorbed by the load, Q. For the circuit o...

Q. For the circuit of Figure: (a) Find an expression for the power absorbed by the load as a function of RL. (b) Plot the power dissipated by the load as a function of the lo

Define not gate - microprocessor, Define NOT Gate - Microprocessor? The...

Define NOT Gate - Microprocessor? The NOT GATE which is as well called an Inverter, is used to invert the logic state of a signal. The output Q is true while the input A is NOT

Input bias current of operational amplifier, Q. Input bias current of opera...

Q. Input bias current of operational amplifier? When operated at extremely low quiescent current values, the base bias currents will be low; but they do have to be taken into c

Determine the load voltage and the armature current, Q. Two shunt generator...

Q. Two shunt generators operate in parallel to supply a total load current of 3000 A. Each machine has an armature resistance of 0.05and a field resistance of 100. If the generat

Find the per-phase impedance of the load, Q. The two-wattmeter method for m...

Q. The two-wattmeter method for measuring three-phase power is applied on a balanced wye-connected load, and the readings are given by W C = 836W and W A = 224 W If the system

Explain memory mapped i/o scheme for the allocation, Explain Memory Mapped ...

Explain Memory Mapped I/O Scheme. Memory Mapped I/O Scheme: In this scheme there is only one address space. Address space is explained as all possible addresses which microproc

Compute the kvar and the power factor of the motor, Q. A three-phase balanc...

Q. A three-phase balanced load draws 100 kW at 0.8 power factor lagging. In order to improve the supply power factor to 0.95 leading, a synchronous motor drawing 50 kWis connected

Fixed capacitor, what is the contruction of a fixed capacitor

what is the contruction of a fixed capacitor

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