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 about blocking probabilityand grade of service, Q. Explain about bl...

Q. Explain about blocking probabilityand Grade of service? And what do you mean by delay systems in telecommunication networks? Ans: Grade of service: In loss systems, traff

Show the dot convention, Q. For the coupled coils shown in Figure, a dot ha...

Q. For the coupled coils shown in Figure, a dot has been arbitrarily assigned to a terminal as indicated. Following the dot convention presented in the text, place the other dot in

Design a combination circuit, Design a combination circuit to combine two s...

Design a combination circuit to combine two signals as follows: v 0 = -2 v 1 - 8v 2 - v 3 The following specifications are imposed: R in ≥ 20 k? at all inputs All

CONTORL SYSTEMS, WHAT ABOUT THE STABILITY IF WE USE COMPENSATOR

WHAT ABOUT THE STABILITY IF WE USE COMPENSATOR

Inverting comparator, what is the graph of inverting comparator,if input vo...

what is the graph of inverting comparator,if input voltage less than reference voltage

Tone used in stronger telephony, Q. Tone used in stronger telephony? Di...

Q. Tone used in stronger telephony? Dial Tone: This tone is used to specify that exchange is ready to accept dialled digits from subscriber. Subscriber must start dialling only

Electrical drives, 'Electrical drives' is a general term that is commonly u...

'Electrical drives' is a general term that is commonly used to describe both DC and AC excited motors that provide continuous rotary motion, whilst 'electrical actuators' provide l

Determine the parameters of the equivalent circuit, No-load and blocked-rot...

No-load and blocked-rotor tests are conducted on a three-phase,wye-connected inductionmotor with the following results. The line-to-line voltage, line current, and total input powe

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