Example of parallel sections construct, Computer Networking

This example demonstrates the use of parallel sections construct. The three functions, fun1, fun2, and fun3, all can be executed concurrently.  Note that all the section directives need to appear in the parallel sections construct.

void fun1(); void fun2(); void fun3();

void  parallel_sec()

{

#pragma omp parallel sections

{

#pragma omp section fun1();

#pragma omp section fun2();

#pragma omp section fun3();

}

}

 

Posted Date: 3/4/2013 5:23:33 AM | Location : United States







Related Discussions:- Example of parallel sections construct, Assignment Help, Ask Question on Example of parallel sections construct, Get Answer, Expert's Help, Example of parallel sections construct Discussions

Write discussion on Example of parallel sections construct
Your posts are moderated
Related Questions
Question 1 Define Router. Explain its type Question 2 List and discuss the different concepts of EIGRP Question 3 Explain the concept of autonomous system Autonomo

What is Bookmark A list of pages a user likes to frequently visit. Netscape® Navigator and Explorer® have a "bookmark" menu item which allows users to add favourite sites vi

TCP creates a reliable data transfer service, in addition to IP''s unreliable best-effort service. Study the related sections of the text, and in your own words, summarize how TCP

using binary adition, what is the result of 1010 + 10? Using binary addition, how would you repeatedly increment a number by 2?


Advantages of LS over DV algorithm There  are a number of advantages to link  state  protocols  especially when  compared to  the distance vector based  routing  protocols. The


modern technology in world of 21 century

On which languages Intranet works Language Support The Intranet works on the basis of scripts written in any of the following languages, viz., SGML, HTML, DHTML, XML, AS

In this part, we shall talk about about message passing libraries. In history, various message passing libraries have been available since the 1980s. These executions differed subs