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

Find the voltage , 1. Find the current through each component, in pola...

1. Find the current through each component, in polar form, using mesh analysis. The source voltages are rms with an angle of 0 degrees. 2. Find the current t

Explain about amplifier noise, Q. Explain about Amplifier noise? Amplif...

Q. Explain about Amplifier noise? Amplifier noise arises from both thermal sources (resistances) and nonthermal sources (semiconductor devices). Although nonthermal noise is no

Define number systems, Q. Define Number Systems? A number system, in ge...

Q. Define Number Systems? A number system, in general, is an ordered set of symbols (digits) with relationships defined for addition, subtraction, multiplication, and division.

Control system., how does Proportional band affect the performance of contr...

how does Proportional band affect the performance of control system?

Electronics, Let me know if you can help during the test

Let me know if you can help during the test

Why memory decoding is required, Why memory decoding is required? To a...

Why memory decoding is required? To attach a memory device to the microprocessor, this is necessary to decode the address sent by the microprocessor. Decoding creates the memo

Digital frequency meter, Q. Explain digital frequency meter. or E...

Q. Explain digital frequency meter. or Explain principle of digital frequency meter and discuss utility of time base selector with suitable diagrams. Sol. Digital Fr

Describe the operation of 8279, Q. Describe the operation of 8279. And als...

Q. Describe the operation of 8279. And also explain following terms: (i) N key Roll over. (ii) Key board debounce. (iii) FIFO RAM. Ans: 8279 is a programmabl

Explain dipolar polarization, Explain dipolar polarization. Dipolar ...

Explain dipolar polarization. Dipolar polarization is a polarization which is particular to polar molecules. Such polarization results from permanent dipoles that retain po

Power distribution, 1.  Establish importance of Distribution Planning with ...

1.  Establish importance of Distribution Planning with help of suitable example.     2.  Explain different distribution planning methods.       3.Explain the six level interv

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