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

What are the important requirements of a insulating material, What are the ...

What are the important requirements of a good insulating material? Important requirements of good insulating materials:- The necessity of good insulating materials can be cl

How is 8255 programmable peripheral interface configured, How is 8255 (Prog...

How is 8255 (Programmable Peripheral Interface) configured if its control registercomprises 9B h.  Ans 9BH => 1001 1011 =>    b6b5=00-> Mode0    b4=0-> Port A as

RLC circuit, A series RLC circuit consisting of resistor of 200 ohms, an in...

A series RLC circuit consisting of resistor of 200 ohms, an inductor of 0.214H and a capacitor of unknown value. When this circuit is energized by 240 i) value of capacitor ii) vol

Explain demodulation of dsb, Q. Explain Demodulation of DSB? Demodulati...

Q. Explain Demodulation of DSB? Demodulation of DSB SC AM signals requires a synchronous demodulator, which is also known as coherent or synchronous detector. That is, the demo

Circuit theory ., it''s 3 assignments and each assignment have 7 questions ...

it''s 3 assignments and each assignment have 7 questions so each assignment have 1 hour when I open it I have only 1 hour to finish it I can show him or her the practice question t

Calculate reactive power to be delivered by the capacitor, A single-phase s...

A single-phase source delivers 100 kW to a load operating at 0.8 lagging power factor. In order to improve the system's efficiency, power factor improvement (correction) is achieve

Determine the initial value and final value of the current, Given the frequ...

Given the frequency-domain response of an RL circuit to be determine the initial value and the final value of the current by using the initial-value and final-value theorem

Assignment, Hi, I got assignment to design a power electronic system Design...

Hi, I got assignment to design a power electronic system Design the circuit and select the appropriate components for that circuit to fulfil the requirements of the device. Regards

Write a note on the application of emitter-follower, Q. Write a note on the...

Q. Write a note on the application of emitter-follower? An emitter follower can serve as a buffer for a voltage source. The voltage divider at left is a poor voltage source bec

Model and simulaions, a short review article on the classification of time ...

a short review article on the classification of time frame

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