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

Consider circuit to obtain complete solution for the voltage, Consider the ...

Consider the circuit of Figure (a) and obtain the complete solution for the voltage v C (t) across the 5-F capacitor and the voltage v x (t) across the 5- resistor.

Determine primary to secondary turns ratio of transformer, Consider a sourc...

Consider a source of voltage v(t) = 10 √2 sin 2t V, with an internal resistance of 1800 Ω. A transformer that can be considered ideal is used to couple a 50- resistive load to th

Explain television signal transmission, Q. Explain Television signal transm...

Q. Explain Television signal transmission? Television signals in television signal transmission are the electric signals generated by converting visual images through raster (T

Explain the working of a darlington pair, Q. Explain the working of a darli...

Q. Explain the working of a darlington pair? This is two transistors connected together so that the current amplified by the first is amplified further by the second transistor

#title., what is plane transmission grating/?

what is plane transmission grating/?

Explain super scalar architecture, Explain super scalar architecture. ...

Explain super scalar architecture. The Pentium microprocessor is organized along with three execution units. Single is executes floating-point instructions, and another two (U

What is the voltage gain of common gate amplifier, Q. What is the voltage g...

Q. What is the voltage gain of common gate amplifier? The controlled source gmVgs is connected from drain to source with rd in parallel.The resistor is connected Rs is connecte

Moving coil transducers, Note transducers  convert a physical quantity from...

Note transducers  convert a physical quantity from one  form to another.  The case below illustrates a typical moving coil meter   that   converts   a   current into a mechanical a

What do you mean by quartz crystals, Q. What do you mean by Quartz crystals...

Q. What do you mean by Quartz crystals? Synthetic quartz is composed of Silicon and Oxygen (Silicon Dioxide) and is cultured in autoclaves under high pressure and temperature.

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