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

Calculate the antenna parameters, For a helical antenna, the half-power bea...

For a helical antenna, the half-power beamwidth and directive gain are given by where C = πD, N = L/S, and S = C tan α,in which α is called the pitch angle, and The

Physics, find the resultant of two forces 20N and25N acting at an angle 60...

find the resultant of two forces 20N and25N acting at an angle 60 degree each other

Show that the output will be high, Considering the TTL NAND gate circuit of...

Considering the TTL NAND gate circuit of Figure, with one or more inputs low, show that the output will be high.

Semiconductors, Charge density I n a semiconductor

Charge density I n a semiconductor

Explain the alphanumeric coding - bcd to decimal conversion, Explain the Al...

Explain the Alphanumeric Coding - bcd to decimal conversion? For the inherently binary world of computer, it is necessary to put all symbols, letters, numbers, and so on into bin

Bi directional buffer 74ls245 , Bi Directional Buffer 74LS245 This types...

Bi Directional Buffer 74LS245 This types  of bi directional  buffer is required for data  bus as it has  to function as bi directional bus. The logic  diagram  of such  buffer i

Electrical engineering, 4. Modify the circuit designed for question 3 to pr...

4. Modify the circuit designed for question 3 to provide an emergency stop which will park both cylinders in the extended position (i.e. A + B +). 5. Modify the circuit designed fo

Explain the working of a photo - transistor with a sketch, Q. Explain the w...

Q. Explain the working of a photo - transistor with a sketch A second optoelectronic device that conducts current when exposed to light is the PHOTOTRANSISTOR. A phototransisto

Sampling methods, The project involves comparisons between di erent samplin...

The project involves comparisons between di erent sampling methods, di erent estimation methods, numerical results using samples selected from a synthetic nite population, and a

Bcd to excess 3 code converter, What are the industrial applications of the...

What are the industrial applications of the project bcd to excess 3 code converter?

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