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

Name 5 different addressing modes, The five addressing modes are given belo...

The five addressing modes are given below: Immediate, Register, Direct, Implied addressing modes           Register indirect,

Performance equations of three phase induction motor , Performance Equation...

Performance Equations of Three Phase Induction Motor When balanced 3-? voltages are applied to the  stator  winding  a rotating magnetic field  of constant amplitude is produc

Determine about the wireless technology, Determine about the Wireless techn...

Determine about the Wireless technology Wireless technology (WiFi) enables connection of a computer to Internet without the need for connecting cables. A router (comprising a m

Characteristics of the diode, Consider a forward-biased diode with a load r...

Consider a forward-biased diode with a load resistance. Let the static volt-ampere characteristic of the diode be given by Equations, and typically represented by Figure. (a) Fo

Name the effects of electric current, Name the Effects of electric current ...

Name the Effects of electric current There are three Effects of electric current:- A) magnetic effect B) chemical effect C) heating effect

What is the function of ct and p.t, Q. What is the function of CT and P.T a...

Q. What is the function of CT and P.T and where they are used? Ans: The full form of CT is Current transformer and is used for calculating of current. The full form of PT is

What do you mean by source encoding, Q. What do you mean by Source Encoding...

Q. What do you mean by Source Encoding? After the quantization of message samples, the digital system will then code each quantized sample into a sequence of binary digits (bit

Electrical circuits and systems, Electrical circuits and systems : Elec...

Electrical circuits and systems : Electrical systems allow energy to be conveniently delivered from the point of supply to the point of application - e.g. electric railways, ca

Arduino Microcontroller, Hi. Do you do projects with Arduino microcontrolle...

Hi. Do you do projects with Arduino microcontroller? How much does it cost?

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