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

Delay line in CRO, why we use delay line in CRO what happens if we not use ...

why we use delay line in CRO what happens if we not use it?

Calculate the induced voltage at full load, A 100-kW, 230-V shunt generator...

A 100-kW, 230-V shunt generator has R a = 0.05  and R f = 57.5 . If the generator operates at rated voltage, calculate the induced voltage at (a) full load, and (b) one-half fu

Determine line voltage for the y- connected machine, A 3-phase, 16-pole syn...

A 3-phase, 16-pole synchronous machine is driven by a prime mover at a speed of 600-rpm with the stator open circuited. The rotor flux per pole is 0.025-Wb. Determine (a) the fr

LED, what ternary alloy, composition and binary substrate can be used for ...

what ternary alloy, composition and binary substrate can be used for an LED at 1.55 µm optical fiber windo

Determine the resulting waveform, Two pure sine waves have similar amplitud...

Two pure sine waves have similar amplitude "A" and frequency "f." They are out of phase through 180 degrees. If these two signals are added, the resulting waveform will be:

Discuss macro assembler directive, Discuss MACRO assembler directive wi...

Discuss MACRO assembler directive with example. MACRO: A sequence of instructions to that has a name is assigned is termed as macro. Macros and subroutines are the

Signal in hart protocol, What is the significance of "4-20 mA" signal in ha...

What is the significance of "4-20 mA" signal in hart protocol? Ans) the HART protocol is an old Frequency Shift Keying way of distribution data, typically from highway sensors.

Digital control system, a digital computer controlled rolling mill regulato...

a digital computer controlled rolling mill regulator system..

Explain the nor gates - microprocessor, Explain the NOR GATES - Microproces...

Explain the NOR GATES - Microprocessor The NOR GATE is an OR gate with the output inverted. Consequently the outputs of a NOR gate would have the opposite states as the outputs o

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