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

Give the properties of pvc, Give the properties of PVC. PVC- It is acqu...

Give the properties of PVC. PVC- It is acquired from polymerisation of hydrogen chloride and acetylene in the presence of a catalyst as peroxides at about 50 0 C. Properties

Determine the full load voltage regulation, A 25KVA, 3 phase, wye-connected...

A 25KVA, 3 phase, wye-connected, 400v synchronous generator has a synchronous impedance of 0.05 +j1.6 ohms per phase. Determine the full load voltage regulation at (a) 0.8 power

Draw a diagram of ultrasonic machine, Draw a diagram of ultrasonic Machine ...

Draw a diagram of ultrasonic Machine and illustrate its important parts? Discuss the following important element of ultrasonic process. (i) Abrasive slurry. (ii) Work Mate

What is effect of overheating on an electric insulator, What is the effect ...

What is the effect of overheating on the life of an electric insulator? An insulator is designed to withstand amount of heat. However, when an insulator is overheated so dielec

Mould casting, Mould Casting: Plaster Moulding : In this method, the...

Mould Casting: Plaster Moulding : In this method, the mould is prepared in gypsum or plaster of paris. In practice, the plaster of paris is mixed with tale, asbestos, fibers

Visible light communication project, I need a project in visible light comm...

I need a project in visible light communication with matlab design.

Give the properties and application of pvc, Give the properties and applica...

Give the properties and application of PVC. Polyvinylchloride (PVC):  It is replacing rubber to a great extent in veracious applications. There is PVC insulated (non-sheathed)

Show typical electric power distribution system, Q. Show Typical electric p...

Q. Show Typical electric power distribution system? In central business districts of large urban areas, the primary distribution circuits consist of underground cables which ar

Matlab, Exercise 1: Data array manipulation and selection using for loops ...

Exercise 1: Data array manipulation and selection using for loops These exercises demonstrate the use of for loops in array manipulation and selection. a) Write a user-defined fun

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