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

Sinusoidal expression for the current, The voltage across a 1 - μF capaci...

The voltage across a 1 - μF capacitor is given. Which is the sinusoidal expression for the current? a) 30 sin200t b) 70cos (800t - 20°) At what frequency will the re

Oscilloscope probe compensation, Q.   what is oscilloscope probe compensati...

Q.   what is oscilloscope probe compensation and how is it adjusted?  What effects are noted when the compensation is not correctly adjustment? Direct Probe: This probe  is

Determine the circuit of three transistors dynamic ram cell, a. Determine t...

a. Determine the circuit of three transistors dynamic RAM cell and define briefly read and write functions. b. Write short note on factors influencing choice of layer for wiring

Dc generater, define all the symbols with their unit

define all the symbols with their unit

Measurement and control systems, Electronic signals are used by almost all ...

Electronic signals are used by almost all measurement and control systems to transfer information. Much of this data is in the form of analogue voltages, which are prone to the ef

Determine the equivalent winding resistance, Determine the equivalent windi...

Determine the equivalent winding resistance: A 50 kVA, 2200/110 V, 50 HZ' transformer contain an HV winding resistance of 0.15 Ω and a leakage reactance of 0.45 Ω. The LV wind

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:

Ldax load accumulator indirect instruction , LDAX  Load Accumulator Indire...

LDAX  Load Accumulator Indirect Instruction This instruction is used to copy data  from memory  location pointed by register  pair only  BC or DE  to the accumulator  HL pair

Find imax and imin, Q. (a) In the circuit shown in Figure the zener diode (...

Q. (a) In the circuit shown in Figure the zener diode (with zero zener resistance) operates in its reverse breakdown region while the voltage across it is held constant at VZ and t

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