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

Explain bound instructions in 8086 family, Explain BOUND instructions in ...

Explain BOUND instructions in 8086 family with example and their effect on flag. BOUND: The BOUND instruction, that has two operands, compares a register along with two word

Zener diod, what is zeenar doide and explain its working

what is zeenar doide and explain its working

Effect of temperature on resistivity of conducting materials, Explain the e...

Explain the effect of temperature on the resistivity of conducting materials. The resistance of most metals rises with rise of temperature whereas that of semiconductors and el

Determine the value of the load resistance, Q. A60-Hz, 100-kVA, 2400/240-V(...

Q. A60-Hz, 100-kVA, 2400/240-V(rms) transformer is used as a step-down transformer from a transmission line to a distribution system. Consider the transformer to be ideal. (a) F

Add instruction , ADD Instruction Op code  format  of ADD instruction...

ADD Instruction Op code  format  of ADD instruction is Replace  the three bit code  of the register R from   to obtain the op code of the  required ADD instruction . op co

Squeeze castings, Squeeze Castings: Squeeze casting, also known as ...

Squeeze Castings: Squeeze casting, also known as liquid metal forging, is a combination of casting and forging process . The molten metal is poured into the bottom half

Design a water supply scheme for a station, Q. Design a water supply scheme...

Q. Design a water supply scheme for a station, adopting the following data - a) Source of water - River flow at a distance of 1 km. b) Requirement of water - 1 lack gallons p

Explain the working principle of a triac, Q. Explain the working principle ...

Q. Explain the working principle of a TRIAC. "Triac" is an abbreviation for three terminal ac switch. 'Tri'-indicates that the device has three terminals and 'ac' indicates tha

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