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

Semiconductor, what are the most 4 types of doping techinques in semiconduc...

what are the most 4 types of doping techinques in semiconductors

Analog computers, Q. Analog Computers? Although not used as much as the...

Q. Analog Computers? Although not used as much as the digital computer (which nowadays forms the basic tool for numerical analysis and the solution of algebraic as well as diff

Transformer, Why we provide the short circuit and open circuit test in tran...

Why we provide the short circuit and open circuit test in transformer

Determine the turns-ratio for the transformer, a) A 230 V/25V, 50 HZ transf...

a) A 230 V/25V, 50 HZ transformer with a rated primary current of 1,2 Amps is used to supply a number of 25 V, 30 Watt halogen light bulbs. Assuming an ideal transformer and that

Electric Optic Device, Transmission Through a LiNb0 3 Plate Examine the tr...

Transmission Through a LiNb0 3 Plate Examine the transmission of an unpolarized He-Ne laser beam (?o= 633 nm) normally incident on a LiNb0 3 plate (ne = 2.29, no = 2.20) of thickn

Improving joints and connections - energy loss, Improving Joints and Connec...

Improving Joints and Connections - Energy Loss Improper joints are a source of energy loss in both overhead and underground systems. The conductivity of joint should not be le

Low investments in transmission and distribution system, Low Investments in...

Low Investments in Transmission and Distribution System The investment on T&D system in our country has commonly been lower than that on generation. It is hugely believed in

Explain thevenin and norton equivalent circuits, Q. Explain Thevenin and no...

Q. Explain Thevenin and norton equivalent circuits? For a linear portion of a circuit consisting of ideal sources and linear resistors, the volt-ampere (v-i) relationship at an

What is autotransformers, Q. What is Autotransformers? In contrast to a...

Q. What is Autotransformers? In contrast to a two-winding transformer, the autotransformer is a single-winding transformer having a tap brought out at an intermediate point. Th

Explain the operation of 8279, Explain the operation of 8279.  Explain the ...

Explain the operation of 8279.  Explain the following terms: (i)  N key Roll over. (ii)  Key board debounce. (iii)  FIFO RAM. Ans The 8279 microprocessor i

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