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

Matlab simulation, Simulate and compare BER of QPSK system and 4-QAM system...

Simulate and compare BER of QPSK system and 4-QAM system without grey coding Eb/No=0.2.4.6.8.10

Write a note on superconductors, Write a note on superconductors. Super...

Write a note on superconductors. Superconductors- The resistivity of most metals rises with increase in temperature and vice-versa. Some metals and chemical compounds are there

What is the load resistance in ohms, Q. A 5-MVA, 66:13.2 kV, three-phase tr...

Q. A 5-MVA, 66:13.2 kV, three-phase transformer supplies a three-phase resistive load of 4500 kW at 13.2 kV. What is the load resistance in ohms as measured fromline to neutral on

Explain how memory paging is used for memory addressing, Explain how memory...

Explain how memory paging is used for memory addressing. The memory paging mechanism placed inside the 80386 and above permits any physical memory location to be assigned to se

Binary number system - number systems , Binary  Number Systems As men...

Binary  Number Systems As mentioned  earlier this  number is used by  digital  systems like  microprocessor  and other  digital  circuits. This  number  systems  use only two

Explain the discrete time systems, Explain the Discrete Time Systems? A...

Explain the Discrete Time Systems? A system operates on an input signal, x[n] and output the results, y[n]. For example, a digital filter (a system) can be represented by the f

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

Calculate the total head loss between points, Look at figure below and use....

Look at figure below and use.  Water (50°F) flows at 250 gpm through the pipe system at the bottom of this page. All piping is four inch (4") diameter cast iron. The distance betwe

Discuss dos function call with one example, Discuss DOS function call with ...

Discuss DOS function call with one example. DOS function call: So as to use DOS function calls, always place the function number in register AH and load all other pertinent

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