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

Wireless cellular systems, i want help in builiding a simulator of cellular...

i want help in builiding a simulator of cellular systems under different frequency reuse scenarios?

Write short note on a negative clamper, Q. Write short note on a negative c...

Q. Write short note on a negative clamper ?   A circuit which places the negative peak of a signal at a desired level is known as a negative clamper (1). During the

Show common signal-processing operations, Q. Show Common signal-processing ...

Q. Show Common signal-processing operations? Common signal-processing operations include the following: • Amplification to compensate for attenuation • Filtering to reduc

Dual-ramp analog to digital converter, Q. Dual-ramp analog to digital conve...

Q. Dual-ramp analog to digital converter? Figure (a) shows the block diagram of a dual-ramp (dual-slope) A/D converter. After a start-of-conversion pulse, the counter is cleare

Composition of mosfet, Composition of MOSFET  In a test pattern the P...

Composition of MOSFET  In a test pattern the Photomicrograph of two metal-gate MOSFETs. Probe pads for two gates and three source or drain nodes are entitled.Generally the se

Torque angle, describe torque angle in ships electrical propulsion system

describe torque angle in ships electrical propulsion system

Algorithm pseudo code and flow charts , Algorithm  pseudo code and flow  ...

Algorithm  pseudo code and flow  charts Algorithm:   before  writing  the program  the programmer must understand  the problem  for which are  program is to  be written. Then

Direct addressing , Direct Addressing In this  addressing  mode one  o...

Direct Addressing In this  addressing  mode one  of the  operands is the  data stored  in the memory. The memory  address of the  operand is directly  given in the instruction

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