gdata.io.handleScriptLoaded({"version":"1.0","encoding":"UTF-8","feed":{"xmlns":"http://www.w3.org/2005/Atom","xmlns$openSearch":"http://a9.com/-/spec/opensearchrss/1.0/","xmlns$gd":"http://schemas.google.com/g/2005","xmlns$georss":"http://www.georss.org/georss","xmlns$thr":"http://purl.org/syndication/thread/1.0","xmlns$blogger":"http://schemas.google.com/blogger/2008","id":{"$t":"tag:blogger.com,1999:blog-913600556879440043"},"updated":{"$t":"2024-01-01T15:38:08.302+05:30"},"category":[{"term":"Data Structures"},{"term":"Vedic Mathematics"},{"term":"My Vlogs"},{"term":"Website Designing"},{"term":"Guest Blogging"},{"term":"Youtube"},{"term":"PPL"},{"term":"Android"},{"term":"Android App Development"},{"term":"High Performance Computing"},{"term":"Socket Programming"},{"term":"Java"},{"term":"Cloud Computing"},{"term":"Unboxing \u0026 Review"},{"term":"Database"},{"term":"OpenMPI"},{"term":"OPENCL"},{"term":"CUDA"},{"term":"LEX \u0026 YACC"},{"term":"Vocabulary"},{"term":"Compiler"},{"term":"Blogging Tips"},{"term":"Networking"},{"term":"Linux"},{"term":"Nanded City Pune"},{"term":"Parallel Computing"},{"term":"SDL"},{"term":"Fedora"},{"term":"Udemy Courses"},{"term":"Dia Software"},{"term":"MPI"},{"term":"Multithreading"},{"term":"Computer Networks"},{"term":"Abbreviations in Computer Science"},{"term":"Salesforce"},{"term":"Lisp"},{"term":"YouTube Tips"},{"term":"MS Excel Formulas \u0026 Functions"},{"term":"C Plus Plus Programming"},{"term":"GATE"},{"term":"Mysql"},{"term":"Google Forms"},{"term":"Wine"},{"term":"Swing"},{"term":"Mathematics"},{"term":"SQL"},{"term":"Amazon Links Summary"},{"term":"Thread Pool"},{"term":"General"},{"term":"Amazon Affiliate Program"},{"term":"How To Write Blog"},{"term":"C Programming"},{"term":"Applet"},{"term":"Selenium Automation Testing"},{"term":"Skill Development Lab"},{"term":"OPENMP"},{"term":"Python"},{"term":"Ubuntu"}],"title":{"type":"text","$t":"Computer Revolution (www.comrevo.com)"},"subtitle":{"type":"html","$t":""},"link":[{"rel":"http://schemas.google.com/g/2005#feed","type":"application/atom+xml","href":"https://www.blogger.com/feeds/913600556879440043/posts/default/-/OPENMP?alt\u003djson-in-script\u0026max-results\u003d6"},{"rel":"self","type":"application/atom+xml","href":"https://www.blogger.com/feeds/913600556879440043/posts/default/-/OPENMP?alt\u003djson-in-script\u0026max-results\u003d6"},{"rel":"alternate","type":"text/html","href":"http://www.comrevo.com/search/label/OPENMP"},{"rel":"hub","href":"http://pubsubhubbub.appspot.com/"},{"rel":"next","type":"application/atom+xml","href":"https://www.blogger.com/feeds/913600556879440043/posts/default/-/OPENMP/-/OPENMP?alt\u003djson-in-script\u0026start-index\u003d7\u0026max-results\u003d6"}],"author":[{"name":{"$t":"Parag Jambhulkar"},"uri":{"$t":"https://www.blogger.com/profile/13991750622483538113"},"email":{"$t":"noreply@blogger.com"},"gd$image":{"rel":"http://schemas.google.com/g/2005#thumbnail","width":"35","height":"35","src":"//www.blogger.com/img/blogger_logo_round_35.png"}}],"generator":{"version":"7.00","uri":"https://www.blogger.com","$t":"Blogger"},"openSearch$totalResults":{"$t":"16"},"openSearch$startIndex":{"$t":"1"},"openSearch$itemsPerPage":{"$t":"6"},"entry":[{"id":{"$t":"tag:blogger.com,1999:blog-913600556879440043.post-4278072836423316447"},"published":{"$t":"2020-07-29T17:13:00.000+05:30"},"updated":{"$t":"2020-07-29T17:13:46.065+05:30"},"category":[{"scheme":"http://www.blogger.com/atom/ns#","term":"OPENMP"},{"scheme":"http://www.blogger.com/atom/ns#","term":"High Performance Computing"}],"title":{"type":"text","$t":"OpenMP Lock with Example | How To Use Lock in OpenMP | Thread Synchronization in OpenMP"},"content":{"type":"html","$t":"\u003cdiv dir\u003d\"ltr\" style\u003d\"text-align: left;\" trbidi\u003d\"on\"\u003e\n\u003cspan style\u003d\"font-size: large;\"\u003e\u0026nbsp; \u0026nbsp; \u0026nbsp; \u0026nbsp; \u0026nbsp; \u0026nbsp; \u0026nbsp; \u0026nbsp; \u0026nbsp; \u0026nbsp; In this post, we will see\u0026nbsp;OpenMP Lock with Example | How To Use Lock in OpenMP | Thread Synchronization in OpenMP\u003c/span\u003e\u003cbr /\u003e\n\u003cspan style\u003d\"font-size: large;\"\u003e\u003cbr /\u003e\u003c/span\u003e\n\u003cspan style\u003d\"font-size: large;\"\u003eWatch this video to know about OpenMP Lock:\u003c/span\u003e\u003cbr /\u003e\n\u003cspan style\u003d\"font-size: large;\"\u003e\u003cbr /\u003e\u003c/span\u003e\n\u003ciframe allow\u003d\"accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture\" allowfullscreen\u003d\"\" frameborder\u003d\"0\" height\u003d\"360\" src\u003d\"https://www.youtube.com/embed/ZXT63uh-YmI\" width\u003d\"640\"\u003e\u003c/iframe\u003e\n\n\u003cspan style\u003d\"font-size: large;\"\u003e\u003cbr /\u003e\u003c/span\u003e\n\u003cspan style\u003d\"font-size: large;\"\u003e\u003cb\u003e\u003cbr /\u003e\u003c/b\u003e\u003c/span\u003e\u003cbr /\u003e\n\u003cspan style\u003d\"font-size: large;\"\u003e\u003cb\u003eWatch on YouTube:\u0026nbsp;\u003ca href\u003d\"https://www.youtube.com/watch?v\u003dZXT63uh-YmI\" target\u003d\"_blank\"\u003ehttps://www.youtube.com/watch?v\u003dZXT63uh-YmI\u003c/a\u003e\u003c/b\u003e\u003c/span\u003e\u003c/div\u003e\n"},"link":[{"rel":"replies","type":"application/atom+xml","href":"https://www.comrevo.com/feeds/4278072836423316447/comments/default","title":"Post Comments"},{"rel":"replies","type":"text/html","href":"https://www.comrevo.com/2020/07/openmp-lock-with-example-how-to-use-thread-synchronization.html#comment-form","title":"0 Comments"},{"rel":"edit","type":"application/atom+xml","href":"https://www.blogger.com/feeds/913600556879440043/posts/default/4278072836423316447"},{"rel":"self","type":"application/atom+xml","href":"https://www.blogger.com/feeds/913600556879440043/posts/default/4278072836423316447"},{"rel":"alternate","type":"text/html","href":"https://www.comrevo.com/2020/07/openmp-lock-with-example-how-to-use-thread-synchronization.html","title":"OpenMP Lock with Example | How To Use Lock in OpenMP | Thread Synchronization in OpenMP"}],"author":[{"name":{"$t":"Parag Jambhulkar"},"uri":{"$t":"https://www.blogger.com/profile/13991750622483538113"},"email":{"$t":"noreply@blogger.com"},"gd$image":{"rel":"http://schemas.google.com/g/2005#thumbnail","width":"35","height":"35","src":"//www.blogger.com/img/blogger_logo_round_35.png"}}],"media$thumbnail":{"xmlns$media":"http://search.yahoo.com/mrss/","url":"https://i.ytimg.com/vi/ZXT63uh-YmI/default.jpg","height":"72","width":"72"},"thr$total":{"$t":"0"}},{"id":{"$t":"tag:blogger.com,1999:blog-913600556879440043.post-3622275531094598179"},"published":{"$t":"2020-07-27T18:39:00.000+05:30"},"updated":{"$t":"2020-07-27T18:39:15.865+05:30"},"category":[{"scheme":"http://www.blogger.com/atom/ns#","term":"OPENMP"},{"scheme":"http://www.blogger.com/atom/ns#","term":"High Performance Computing"}],"title":{"type":"text","$t":"OpenMP Critical Section with Example | How To Synchronize Threads in OpenMP"},"content":{"type":"html","$t":"\u003cdiv dir\u003d\"ltr\" style\u003d\"text-align: left;\" trbidi\u003d\"on\"\u003e\n\u003cspan style\u003d\"font-size: large;\"\u003e\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp; In this post, we will see OpenMP Critical Section with Example | How To Synchronize Threads in OpenMP | openmp critical,openmp critical section with example,openmp critical example,how to synchronize threads,openmp synchronize threads\u003cbr /\u003e\u003cbr /\u003eBlog link for OpenMP Critical Section Example:\u003cbr /\u003e\u003ca href\u003d\"https://www.comrevo.com/2016/01/openmp-critical-section-example.html\"\u003ehttps://www.comrevo.com/2016/01/openmp-critical-section-example.html\u003c/a\u003e\u003cbr /\u003e\u003cbr /\u003eWatch following video:\u003c/span\u003e\u003cbr /\u003e\n\u003cbr /\u003e\n\u003ciframe allow\u003d\"accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture\" allowfullscreen\u003d\"\" frameborder\u003d\"0\" height\u003d\"360\" src\u003d\"https://www.youtube.com/embed/5yla68mLVoM\" width\u003d\"640\"\u003e\u003c/iframe\u003e\n\n\u003cbr /\u003e\n\u003cbr /\u003e\n\u003cb\u003e\u003cspan style\u003d\"font-size: large;\"\u003eWatch on YouTube:\u0026nbsp;\u003ca href\u003d\"https://www.youtube.com/watch?v\u003d5yla68mLVoM\" target\u003d\"_blank\"\u003ehttps://www.youtube.com/watch?v\u003d5yla68mLVoM\u003c/a\u003e \u003c/span\u003e\u003c/b\u003e\u003c/div\u003e\n"},"link":[{"rel":"replies","type":"application/atom+xml","href":"https://www.comrevo.com/feeds/3622275531094598179/comments/default","title":"Post Comments"},{"rel":"replies","type":"text/html","href":"https://www.comrevo.com/2020/07/openmp-critical-section-with-example-synchronize-threads.html#comment-form","title":"0 Comments"},{"rel":"edit","type":"application/atom+xml","href":"https://www.blogger.com/feeds/913600556879440043/posts/default/3622275531094598179"},{"rel":"self","type":"application/atom+xml","href":"https://www.blogger.com/feeds/913600556879440043/posts/default/3622275531094598179"},{"rel":"alternate","type":"text/html","href":"https://www.comrevo.com/2020/07/openmp-critical-section-with-example-synchronize-threads.html","title":"OpenMP Critical Section with Example | How To Synchronize Threads in OpenMP"}],"author":[{"name":{"$t":"Parag Jambhulkar"},"uri":{"$t":"https://www.blogger.com/profile/13991750622483538113"},"email":{"$t":"noreply@blogger.com"},"gd$image":{"rel":"http://schemas.google.com/g/2005#thumbnail","width":"35","height":"35","src":"//www.blogger.com/img/blogger_logo_round_35.png"}}],"media$thumbnail":{"xmlns$media":"http://search.yahoo.com/mrss/","url":"https://i.ytimg.com/vi/5yla68mLVoM/default.jpg","height":"72","width":"72"},"thr$total":{"$t":"0"}},{"id":{"$t":"tag:blogger.com,1999:blog-913600556879440043.post-7778990599092859866"},"published":{"$t":"2020-07-27T18:19:00.000+05:30"},"updated":{"$t":"2020-07-27T18:19:11.745+05:30"},"category":[{"scheme":"http://www.blogger.com/atom/ns#","term":"OPENMP"},{"scheme":"http://www.blogger.com/atom/ns#","term":"High Performance Computing"}],"title":{"type":"text","$t":"OpenMP Sections | OpenMP Section Example | OpenMP Parallel Sections"},"content":{"type":"html","$t":"\u003cdiv dir\u003d\"ltr\" style\u003d\"text-align: left;\" trbidi\u003d\"on\"\u003e\n\u003cspan style\u003d\"font-size: large;\"\u003e\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp; In this post, we will see OpenMP Sections | OpenMP Section Example | OpenMP Parallel Sections | openmp programs in c,openmp programming,openmp sections,openmp sections example,openmp parallel sections\u003cbr /\u003e\u003cbr /\u003eBlog link for OpenMP Parallel Sections Example:\u003cbr /\u003e\u003ca href\u003d\"https://www.comrevo.com/2016/01/openmp-parallel-sections-example.html\"\u003ehttps://www.comrevo.com/2016/01/openmp-parallel-sections-example.html\u003c/a\u003e\u003cbr /\u003e\u003cbr /\u003eWatch this video to know about OpenMP Parallel Sections with Example:\u003c/span\u003e\u003cbr /\u003e\n\u003cbr /\u003e\n\u003ciframe allow\u003d\"accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture\" allowfullscreen\u003d\"\" frameborder\u003d\"0\" height\u003d\"360\" src\u003d\"https://www.youtube.com/embed/KMEXW2lZ_-0\" width\u003d\"640\"\u003e\u003c/iframe\u003e\n\n\n\u003cbr /\u003e\n\u003cbr /\u003e\n\u003cb\u003e\u003cspan style\u003d\"font-size: large;\"\u003eWatch on YouTube:\u0026nbsp;\u003ca href\u003d\"https://www.youtube.com/watch?v\u003dKMEXW2lZ_-0\" target\u003d\"_blank\"\u003ehttps://www.youtube.com/watch?v\u003dKMEXW2lZ_-0\u003c/a\u003e \u003c/span\u003e\u003c/b\u003e\u003c/div\u003e\n"},"link":[{"rel":"replies","type":"application/atom+xml","href":"https://www.comrevo.com/feeds/7778990599092859866/comments/default","title":"Post Comments"},{"rel":"replies","type":"text/html","href":"https://www.comrevo.com/2020/07/openmp-sections-openmp-parallel-section-example.html#comment-form","title":"0 Comments"},{"rel":"edit","type":"application/atom+xml","href":"https://www.blogger.com/feeds/913600556879440043/posts/default/7778990599092859866"},{"rel":"self","type":"application/atom+xml","href":"https://www.blogger.com/feeds/913600556879440043/posts/default/7778990599092859866"},{"rel":"alternate","type":"text/html","href":"https://www.comrevo.com/2020/07/openmp-sections-openmp-parallel-section-example.html","title":"OpenMP Sections | OpenMP Section Example | OpenMP Parallel Sections"}],"author":[{"name":{"$t":"Parag Jambhulkar"},"uri":{"$t":"https://www.blogger.com/profile/13991750622483538113"},"email":{"$t":"noreply@blogger.com"},"gd$image":{"rel":"http://schemas.google.com/g/2005#thumbnail","width":"35","height":"35","src":"//www.blogger.com/img/blogger_logo_round_35.png"}}],"media$thumbnail":{"xmlns$media":"http://search.yahoo.com/mrss/","url":"https://i.ytimg.com/vi/KMEXW2lZ_-0/default.jpg","height":"72","width":"72"},"thr$total":{"$t":"0"}},{"id":{"$t":"tag:blogger.com,1999:blog-913600556879440043.post-8735150274709890384"},"published":{"$t":"2020-07-27T18:10:00.001+05:30"},"updated":{"$t":"2020-07-27T18:10:16.396+05:30"},"category":[{"scheme":"http://www.blogger.com/atom/ns#","term":"OPENMP"},{"scheme":"http://www.blogger.com/atom/ns#","term":"High Performance Computing"}],"title":{"type":"text","$t":"OpenMP Basics | What is OpenMP | A Simple Example To Create Threads in OpenMP | OpenMP Programming-"},"content":{"type":"html","$t":"\u003cdiv dir\u003d\"ltr\" style\u003d\"text-align: left;\" trbidi\u003d\"on\"\u003e\n\u003cspan style\u003d\"font-size: large;\"\u003e\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp; In this post, we will see OpenMP Basics | What is OpenMP | A Simple Example To Create Threads in OpenMP | OpenMP Programming | openmp parallel programming,openmp tutorial,openmp programs in c,openmp programming,openmp execution model,openmp directives,openmp for loop,openmp basics\u003cbr /\u003e\u003cbr /\u003eBlog link for How To Create Threads using OpenMP API:\u003cbr /\u003e\u003ca href\u003d\"https://www.comrevo.com/2016/01/how-to-create-threads-using-openmp-api.html\"\u003ehttps://www.comrevo.com/2016/01/how-to-create-threads-using-openmp-api.html\u003c/a\u003e\u003cbr /\u003e\u003cbr /\u003eWatch this video to know basics of OpenMP programming:\u003c/span\u003e\u003cbr /\u003e\n\u003cbr /\u003e\n\u003ciframe allow\u003d\"accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture\" allowfullscreen\u003d\"\" frameborder\u003d\"0\" height\u003d\"360\" src\u003d\"https://www.youtube.com/embed/B7-Qnu2vZDc\" width\u003d\"640\"\u003e\u003c/iframe\u003e\n\n\u003cbr /\u003e\n\u003cbr /\u003e\n\u003cb\u003e\u003cspan style\u003d\"font-size: large;\"\u003eWatch on YouTube:\u0026nbsp;\u003ca href\u003d\"https://www.youtube.com/watch?v\u003dB7-Qnu2vZDc\" target\u003d\"_blank\"\u003ehttps://www.youtube.com/watch?v\u003dB7-Qnu2vZDc\u003c/a\u003e \u003c/span\u003e\u003c/b\u003e\u003c/div\u003e\n"},"link":[{"rel":"replies","type":"application/atom+xml","href":"https://www.comrevo.com/feeds/8735150274709890384/comments/default","title":"Post Comments"},{"rel":"replies","type":"text/html","href":"https://www.comrevo.com/2020/07/openmp-basics-what-is-openmp-simple-example.html#comment-form","title":"0 Comments"},{"rel":"edit","type":"application/atom+xml","href":"https://www.blogger.com/feeds/913600556879440043/posts/default/8735150274709890384"},{"rel":"self","type":"application/atom+xml","href":"https://www.blogger.com/feeds/913600556879440043/posts/default/8735150274709890384"},{"rel":"alternate","type":"text/html","href":"https://www.comrevo.com/2020/07/openmp-basics-what-is-openmp-simple-example.html","title":"OpenMP Basics | What is OpenMP | A Simple Example To Create Threads in OpenMP | OpenMP Programming-"}],"author":[{"name":{"$t":"Parag Jambhulkar"},"uri":{"$t":"https://www.blogger.com/profile/13991750622483538113"},"email":{"$t":"noreply@blogger.com"},"gd$image":{"rel":"http://schemas.google.com/g/2005#thumbnail","width":"35","height":"35","src":"//www.blogger.com/img/blogger_logo_round_35.png"}}],"media$thumbnail":{"xmlns$media":"http://search.yahoo.com/mrss/","url":"https://i.ytimg.com/vi/B7-Qnu2vZDc/default.jpg","height":"72","width":"72"},"thr$total":{"$t":"0"}},{"id":{"$t":"tag:blogger.com,1999:blog-913600556879440043.post-1541714310636394918"},"published":{"$t":"2017-02-20T13:55:00.002+05:30"},"updated":{"$t":"2020-09-03T23:36:26.721+05:30"},"category":[{"scheme":"http://www.blogger.com/atom/ns#","term":"OPENMP"}],"title":{"type":"text","$t":"How To Use Lock in OpenMP"},"content":{"type":"html","$t":"\u003cdiv dir\u003d\"ltr\" style\u003d\"text-align: left;\" trbidi\u003d\"on\"\u003e\n\u003cspan style\u003d\"font-size: large;\"\u003e\u0026nbsp; \u0026nbsp; \u0026nbsp; \u0026nbsp; \u0026nbsp; \u0026nbsp; \u0026nbsp; \u0026nbsp; \u0026nbsp;In this post, we will see\u0026nbsp;OpenMP Lock with Example | How To Use Lock in OpenMP | Thread Synchronization in OpenMP.\u003c/span\u003e\u003c/div\u003e\u003cdiv dir\u003d\"ltr\" style\u003d\"text-align: left;\" trbidi\u003d\"on\"\u003e\u003cspan style\u003d\"font-size: large;\"\u003e\u003cbr /\u003e\u003c/span\u003e\u003c/div\u003e\u003cdiv dir\u003d\"ltr\" style\u003d\"text-align: left;\" trbidi\u003d\"on\"\u003e\u003cspan style\u003d\"font-size: large;\"\u003e\u0026nbsp; \u0026nbsp; \u0026nbsp; \u0026nbsp; \u0026nbsp; \u0026nbsp; \u0026nbsp; \u0026nbsp; \u0026nbsp; In last post, we have seen how to use\u0026nbsp;\u003c/span\u003e\u003cspan style\u003d\"font-size: large;\"\u003e\"#pragma omp critical \". In this post, we will see how to use OpenMP Lock.\u003c/span\u003e\u003cspan style\u003d\"font-size: large;\"\u003e\u0026nbsp; \u0026nbsp; \u0026nbsp; \u0026nbsp; \u0026nbsp; \u0026nbsp; \u0026nbsp; \u0026nbsp; \u0026nbsp; \u0026nbsp; \u0026nbsp; \u0026nbsp; \u0026nbsp; \u0026nbsp; \u0026nbsp;\u003c/span\u003e\u003cbr /\u003e\n\u003cspan style\u003d\"font-size: large;\"\u003e\u0026nbsp; \u0026nbsp; \u0026nbsp; \u0026nbsp; \u0026nbsp; \u0026nbsp; \u0026nbsp; \u0026nbsp; \u0026nbsp;Critical section is the region in program where various threads want to access global variables. In OpenMP, we can avoid such race condition among different threads by using Lock.\u003c/span\u003e\u003c/div\u003e\u003cdiv dir\u003d\"ltr\" style\u003d\"text-align: left;\" trbidi\u003d\"on\"\u003e\u003cspan style\u003d\"font-size: large;\"\u003e\u003cbr /\u003e\u003c/span\u003e\u003c/div\u003e\u003cdiv dir\u003d\"ltr\" style\u003d\"text-align: left;\" trbidi\u003d\"on\"\u003e\u003cdiv dir\u003d\"ltr\" trbidi\u003d\"on\"\u003e\u003cspan style\u003d\"font-size: large;\"\u003eWatch following video:\u003c/span\u003e\u003c/div\u003e\u003cdiv dir\u003d\"ltr\" trbidi\u003d\"on\"\u003e\u003cspan style\u003d\"font-size: large;\"\u003e\u003cbr /\u003e\u003ciframe allow\u003d\"accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture\" allowfullscreen\u003d\"\" frameborder\u003d\"0\" height\u003d\"360\" src\u003d\"https://www.youtube.com/embed/ZXT63uh-YmI\" width\u003d\"640\"\u003e\u003c/iframe\u003e\u003c/span\u003e\u003c/div\u003e\u003cdiv dir\u003d\"ltr\" trbidi\u003d\"on\"\u003e\u003cspan style\u003d\"font-size: large;\"\u003e\u003cb\u003eWatch on YouTube:\u0026nbsp;\u003ca href\u003d\"https://www.youtube.com/watch?v\u003dZXT63uh-YmI\" target\u003d\"_blank\"\u003ehttps://www.youtube.com/watch?v\u003dZXT63uh-YmI\u003c/a\u003e\u003c/b\u003e\u003c/span\u003e\u003c/div\u003e\u003c/div\u003e\u003cdiv dir\u003d\"ltr\" style\u003d\"text-align: left;\" trbidi\u003d\"on\"\u003e\u003cbr /\u003e\u003c/div\u003e\u003cdiv dir\u003d\"ltr\" style\u003d\"text-align: left;\" trbidi\u003d\"on\"\u003e\n\u003cdiv dir\u003d\"ltr\" style\u003d\"text-align: left;\" trbidi\u003d\"on\"\u003e\n\u003cspan style\u003d\"font-size: large;\"\u003e\u0026nbsp; \u0026nbsp; \u0026nbsp; \u0026nbsp; \u0026nbsp; \u0026nbsp; \u0026nbsp; \u0026nbsp; \u0026nbsp;\u003c/span\u003e\u003cspan style\u003d\"font-size: large;\"\u003eLets see a simple C language program (program.c) which uses OpenMP API. Here we will create 300 threads and each thread will try to increment the value of x.\u003c/span\u003e\u003cbr /\u003e\n\u003cspan style\u003d\"font-size: large;\"\u003e\u003cbr /\u003e\u003c/span\u003e\n\u003cbr /\u003e\n\u003ca name\u003d'more'\u003e\u003c/a\u003e\u003cb\u003e\u003cspan style\u003d\"font-size: large;\"\u003eProgram: (program.c)\u003c/span\u003e\u003c/b\u003e\u003cbr /\u003e\n\u003cspan style\u003d\"font-size: large;\"\u003e\u003cbr /\u003e\u003c/span\u003e\n\u003cbr /\u003e\n\u003cdiv style\u003d\"background-color: lightgreen;\"\u003e\n\u003cspan style\u003d\"font-size: large;\"\u003e#include\u0026lt;stdio.h\u0026gt;\u003cbr /\u003e#include\u0026lt;omp.h\u0026gt;\u003cbr /\u003e\u003cbr /\u003evoid main()\u003cbr /\u003e{\u003cbr /\u003eint x\u003d0;\u003cbr /\u003e\u003cbr /\u003e#pragma omp parallel num_threads(300)\u003cbr /\u003e{\u003cbr /\u003ex\u003dx+1;\u003cbr /\u003e}\u003cbr /\u003e\u003cbr /\u003eprintf(\"x\u003d%d\\n\",x);\u003cbr /\u003e}\u003c/span\u003e\u003c/div\u003e\n\u003cspan style\u003d\"font-size: large;\"\u003e\u003cbr /\u003e\u003c/span\u003e\n\u003cb\u003e\u003cspan style\u003d\"font-size: large;\"\u003eHow To Run:\u0026nbsp;\u003c/span\u003e\u003c/b\u003e\u003cbr /\u003e\n\u003cu\u003e\u003cspan style\u003d\"font-size: large;\"\u003eTo Compile:\u003c/span\u003e\u003c/u\u003e\u003cbr /\u003e\n\u003cspan style\u003d\"font-size: large;\"\u003egcc -fopenmp program.c\u0026nbsp;\u003c/span\u003e\u003cb\u003e\u003cspan style\u003d\"font-size: large;\"\u003e\u0026nbsp;\u0026nbsp;\u003c/span\u003e\u003c/b\u003e\u003cbr /\u003e\n\u003cb\u003e\u003cspan style\u003d\"font-size: large;\"\u003e\u003cbr /\u003e\u003c/span\u003e\u003c/b\u003e\u003cu\u003e\u003cspan style\u003d\"font-size: large;\"\u003eTo Run:\u003c/span\u003e\u003c/u\u003e\u003cbr /\u003e\n\u003cspan style\u003d\"font-size: large;\"\u003e./a.out\u003c/span\u003e\u003cbr /\u003e\n\u003cspan style\u003d\"font-size: large;\"\u003e\u003cbr /\u003e\u003c/span\u003e\n\u003cb\u003e\u003cspan style\u003d\"font-size: large;\"\u003eOutput:\u003c/span\u003e\u003c/b\u003e\u003cbr /\u003e\n\u003cdiv class\u003d\"separator\" style\u003d\"clear: both; text-align: center;\"\u003e\n\u003ca href\u003d\"https://2.bp.blogspot.com/-9Ylev_EnYaw/WKqoGs20jaI/AAAAAAAADZk/N1YqQ1AVM3cs1Q6uhSNE1tRrDj3AKmtygCLcB/s1600/programs.jpeg\" style\u003d\"margin-left: 1em; margin-right: 1em;\"\u003e\u003cspan style\u003d\"font-size: large;\"\u003e\u003cimg border\u003d\"0\" src\u003d\"https://2.bp.blogspot.com/-9Ylev_EnYaw/WKqoGs20jaI/AAAAAAAADZk/N1YqQ1AVM3cs1Q6uhSNE1tRrDj3AKmtygCLcB/s1600/programs.jpeg\" /\u003e\u003c/span\u003e\u003c/a\u003e\u003c/div\u003e\n\u003cb\u003e\u003cspan style\u003d\"font-size: large;\"\u003e\u003cbr /\u003e\u003c/span\u003e\u003c/b\u003e\n\u003cbr /\u003e\n\u003cdiv class\u003d\"separator\" style\u003d\"clear: both; text-align: center;\"\u003e\n\u003c/div\u003e\n\u003cspan style\u003d\"font-size: large;\"\u003e\u003cbr /\u003e\u003c/span\u003e\n\u003cb\u003e\u003cspan style\u003d\"font-size: large;\"\u003e\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u003c/span\u003e\u003c/b\u003e\u003cspan style\u003d\"font-size: large;\"\u003eCheck above output. We were expecting output as \"x\u003d300\". But we got various values for x. It is because, in this case, some threads were simultaneously incrementing the value of x.\u0026nbsp;\u003c/span\u003e\u003cbr /\u003e\n\u003cspan style\u003d\"font-size: large;\"\u003e\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp; We can avoid such race condition in OpenMP by using OpenMP Lock.\u003c/span\u003e\u003cbr /\u003e\n\u003cspan style\u003d\"font-size: large;\"\u003e\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u003c/span\u003e\u003cbr /\u003e\n\u003cspan style\u003d\"font-size: large;\"\u003e\u0026nbsp; \u0026nbsp; \u0026nbsp; \u0026nbsp; \u0026nbsp; \u0026nbsp; \u0026nbsp; \u0026nbsp; \u0026nbsp;Check following program:\u003c/span\u003e\u003cbr /\u003e\n\u003cspan style\u003d\"font-size: large;\"\u003e\u003cbr /\u003e\u003c/span\u003e\n\u003cb\u003e\u003cspan style\u003d\"font-size: large;\"\u003eProgram: (\u003c/span\u003e\u003c/b\u003e\u003cspan style\u003d\"font-size: large;\"\u003e\u003cb\u003eopenmplocks.c\u003c/b\u003e\u003c/span\u003e\u003cb\u003e\u003cspan style\u003d\"font-size: large;\"\u003e)\u003c/span\u003e\u003c/b\u003e\u003cbr /\u003e\n\u003cspan style\u003d\"font-size: large;\"\u003e\u003cbr /\u003e\u003c/span\u003e\n\u003cbr /\u003e\n\u003cdiv style\u003d\"background-color: lightgreen;\"\u003e\n\u003cspan style\u003d\"font-size: large;\"\u003e#include\u0026lt;stdio.h\u0026gt;\u003c/span\u003e\u003cbr /\u003e\n\u003cspan style\u003d\"font-size: large;\"\u003e#include\u0026lt;omp.h\u0026gt;\u003c/span\u003e\u003cbr /\u003e\n\u003cspan style\u003d\"font-size: large;\"\u003e\u003cbr /\u003e\u003c/span\u003e\n\u003cspan style\u003d\"font-size: large;\"\u003evoid main()\u003c/span\u003e\u003cbr /\u003e\n\u003cspan style\u003d\"font-size: large;\"\u003e{\u003c/span\u003e\u003cbr /\u003e\n\u003cspan style\u003d\"font-size: large;\"\u003eint x\u003d0;\u003c/span\u003e\u003cbr /\u003e\n\u003cspan style\u003d\"font-size: large;\"\u003e\u003cbr /\u003e\u003c/span\u003e\n\u003cspan style\u003d\"font-size: large;\"\u003eomp_lock_t writelock;\u003c/span\u003e\u003cbr /\u003e\n\u003cspan style\u003d\"font-size: large;\"\u003e\u003cbr /\u003e\u003c/span\u003e\n\u003cspan style\u003d\"font-size: large;\"\u003eomp_init_lock(\u0026amp;writelock);\u003c/span\u003e\u003cbr /\u003e\n\u003cspan style\u003d\"font-size: large;\"\u003e\u003cbr /\u003e\u003c/span\u003e\n\u003cspan style\u003d\"font-size: large;\"\u003e#pragma omp parallel num_threads(300)\u003c/span\u003e\u003cbr /\u003e\n\u003cspan style\u003d\"font-size: large;\"\u003e{\u003c/span\u003e\u003cbr /\u003e\n\u003cspan style\u003d\"font-size: large;\"\u003eomp_set_lock(\u0026amp;writelock);\u003c/span\u003e\u003cbr /\u003e\n\u003cspan style\u003d\"font-size: large;\"\u003ex\u003dx+1;\u003c/span\u003e\u003cbr /\u003e\n\u003cspan style\u003d\"font-size: large;\"\u003eomp_unset_lock(\u0026amp;writelock);\u003c/span\u003e\u003cbr /\u003e\n\u003cspan style\u003d\"font-size: large;\"\u003e}\u003c/span\u003e\u003cbr /\u003e\n\u003cspan style\u003d\"font-size: large;\"\u003e\u003cbr /\u003e\u003c/span\u003e\n\u003cspan style\u003d\"font-size: large;\"\u003eprintf(\"x\u003d%d\\n\",x);\u003c/span\u003e\u003cbr /\u003e\n\u003cspan style\u003d\"font-size: large;\"\u003e\u003cbr /\u003e\u003c/span\u003e\n\u003cspan style\u003d\"font-size: large;\"\u003eomp_destroy_lock(\u0026amp;writelock);\u003c/span\u003e\u003cbr /\u003e\n\u003cspan style\u003d\"font-size: large;\"\u003e}\u003c/span\u003e\u003cbr /\u003e\n\u003cspan style\u003d\"font-size: large;\"\u003e\u003cbr /\u003e\u003c/span\u003e\u003c/div\u003e\n\u003cdiv\u003e\n\u003cspan style\u003d\"font-size: large;\"\u003e\u003cbr /\u003e\u003c/span\u003e\n\u003cb\u003e\u003cspan style\u003d\"font-size: large;\"\u003eHow To Run:\u0026nbsp;\u003c/span\u003e\u003c/b\u003e\u003cbr /\u003e\n\u003cu\u003e\u003cspan style\u003d\"font-size: large;\"\u003eTo Compile:\u003c/span\u003e\u003c/u\u003e\u003cbr /\u003e\n\u003cspan style\u003d\"font-size: large;\"\u003egcc -fopenmp openmplocks.c\u0026nbsp;\u003c/span\u003e\u003cb\u003e\u003cspan style\u003d\"font-size: large;\"\u003e\u0026nbsp;\u0026nbsp;\u003c/span\u003e\u003c/b\u003e\u003cbr /\u003e\n\u003cb\u003e\u003cspan style\u003d\"font-size: large;\"\u003e\u003cbr /\u003e\u003c/span\u003e\u003c/b\u003e\u003cu\u003e\u003cspan style\u003d\"font-size: large;\"\u003eTo Run:\u003c/span\u003e\u003c/u\u003e\u003cbr /\u003e\n\u003cspan style\u003d\"font-size: large;\"\u003e./a.out\u003c/span\u003e\u003c/div\u003e\n\u003cdiv\u003e\n\u003cspan style\u003d\"font-size: large;\"\u003e\u003cbr /\u003e\u003c/span\u003e\n\u003cspan style\u003d\"font-size: large;\"\u003e\u003cb\u003eOutput:\u003c/b\u003e\u0026nbsp;\u003c/span\u003e\u003cbr /\u003e\n\u003cdiv class\u003d\"separator\" style\u003d\"clear: both; text-align: center;\"\u003e\n\u003c/div\u003e\n\u003c/div\u003e\n\u003cdiv\u003e\n\u003cdiv class\u003d\"separator\" style\u003d\"clear: both; text-align: center;\"\u003e\n\u003c/div\u003e\n\u003cdiv class\u003d\"separator\" style\u003d\"clear: both; text-align: center;\"\u003e\n\u003ca href\u003d\"http://4.bp.blogspot.com/-SyavDeCPSEQ/VpztDd5LkCI/AAAAAAAACwM/BxmqTZjJ0To/s1600/openmpcritical.jpeg\" style\u003d\"margin-left: 1em; margin-right: 1em;\"\u003e\u003cspan style\u003d\"font-size: large;\"\u003e\u003c/span\u003e\u003c/a\u003e\u003c/div\u003e\n\u003cdiv class\u003d\"separator\" style\u003d\"clear: both; text-align: center;\"\u003e\n\u003c/div\u003e\n\u003cdiv class\u003d\"separator\" style\u003d\"clear: both; text-align: center;\"\u003e\n\u003c/div\u003e\n\u003cdiv class\u003d\"separator\" style\u003d\"clear: both; text-align: center;\"\u003e\n\u003ca href\u003d\"https://2.bp.blogspot.com/-E2-Lqe7D2Ps/WKqogAcbvtI/AAAAAAAADZs/nIDUnScfsT8xhApYwKgIWyUJeFRf4Jy2QCEw/s1600/openmplocks.jpeg\" style\u003d\"margin-left: 1em; margin-right: 1em;\"\u003e\u003cimg border\u003d\"0\" src\u003d\"https://2.bp.blogspot.com/-E2-Lqe7D2Ps/WKqogAcbvtI/AAAAAAAADZs/nIDUnScfsT8xhApYwKgIWyUJeFRf4Jy2QCEw/s1600/openmplocks.jpeg\" /\u003e\u003c/a\u003e\u003c/div\u003e\n\u003cspan style\u003d\"font-size: large;\"\u003e\u003cbr /\u003e\u003c/span\u003e\n\u003cspan style\u003d\"font-size: large;\"\u003e\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u003cspan style\u003d\"font-size: large;\"\u003eHere, for each execution, we got \"x\u003d300\" because at one instance only one thread was incrementing the value of x.\u003c/span\u003e\u003c/span\u003e\u003cbr /\u003e\n\u003cspan style\u003d\"font-size: large;\"\u003e\u003cbr /\u003e\u003c/span\u003e\n\u003cspan style\u003d\"font-size: large;\"\u003e\u003cb\u003e\u003cu\u003eNote:\u003c/u\u003e\u003c/b\u003e\u003c/span\u003e\u003cbr /\u003e\n\u003cspan style\u003d\"font-size: large;\"\u003e1. omp_lock_t is data type used to declare lock variable.\u003c/span\u003e\u003cbr /\u003e\n\u003cspan style\u003d\"font-size: large;\"\u003e2. Function omp_init_lock() is used to initialize lock. By default, lock is unset.\u003c/span\u003e\u003cbr /\u003e\n\u003cspan style\u003d\"font-size: large;\"\u003e3. Function omp_set_lock() is used to set lock. Once any thread calls this function, lock is set and no other thread can access the critical section until calling thread calls\u0026nbsp;\u003c/span\u003e\u003cspan style\u003d\"font-size: large;\"\u003eomp_unset_lock().\u003c/span\u003e\u003cbr /\u003e\n\u003cspan style\u003d\"font-size: large;\"\u003e4.\u0026nbsp;\u003c/span\u003e\u003cspan style\u003d\"font-size: large;\"\u003eFunction omp_unset_lock() is used to unset lock. So that other threads can access critical section.\u003c/span\u003e\u003cbr /\u003e\n\u003cspan style\u003d\"font-size: large;\"\u003e5. omp_destroy_lock() destroys the lock i.e. terminate the binding with lock variable.\u003c/span\u003e\u003c/div\u003e\n\u003c/div\u003e\n\u003cspan style\u003d\"font-size: large;\"\u003e\u003cbr /\u003e\u003c/span\u003e\n\u003cbr /\u003e\n\u003cdiv\u003e\n\u003ccenter\u003e\n\u003ctable border\u003d\"1\"\u003e\u003ctbody\u003e\n\u003ctr\u003e\u003ctd\u003e\u003cspan style\u003d\"font-size: large;\"\u003e\u003cb\u003e\u003ca href\u003d\"http://www.comrevo.com/2016/08/openmp.html\" target\u003d\"_blank\"\u003eCheck Other Posts on OPENMP\u003c/a\u003e\u003c/b\u003e\u003c/span\u003e\u003c/td\u003e\u003c/tr\u003e\n\u003c/tbody\u003e\u003c/table\u003e\n\u003c/center\u003e\n\u003c/div\u003e\n\u003cbr /\u003e\u003c/div\u003e\n"},"link":[{"rel":"replies","type":"application/atom+xml","href":"https://www.comrevo.com/feeds/1541714310636394918/comments/default","title":"Post Comments"},{"rel":"replies","type":"text/html","href":"https://www.comrevo.com/2017/02/how-to-use-lock-in-openmp.html#comment-form","title":"0 Comments"},{"rel":"edit","type":"application/atom+xml","href":"https://www.blogger.com/feeds/913600556879440043/posts/default/1541714310636394918"},{"rel":"self","type":"application/atom+xml","href":"https://www.blogger.com/feeds/913600556879440043/posts/default/1541714310636394918"},{"rel":"alternate","type":"text/html","href":"https://www.comrevo.com/2017/02/how-to-use-lock-in-openmp.html","title":"How To Use Lock in OpenMP"}],"author":[{"name":{"$t":"Parag Jambhulkar"},"uri":{"$t":"https://www.blogger.com/profile/13991750622483538113"},"email":{"$t":"noreply@blogger.com"},"gd$image":{"rel":"http://schemas.google.com/g/2005#thumbnail","width":"35","height":"35","src":"//www.blogger.com/img/blogger_logo_round_35.png"}}],"media$thumbnail":{"xmlns$media":"http://search.yahoo.com/mrss/","url":"https://i.ytimg.com/vi/ZXT63uh-YmI/default.jpg","height":"72","width":"72"},"thr$total":{"$t":"0"}},{"id":{"$t":"tag:blogger.com,1999:blog-913600556879440043.post-7458592267148517943"},"published":{"$t":"2016-08-31T20:48:00.002+05:30"},"updated":{"$t":"2017-08-31T09:16:18.210+05:30"},"category":[{"scheme":"http://www.blogger.com/atom/ns#","term":"OPENMP"}],"title":{"type":"text","$t":"OpenMP"},"content":{"type":"html","$t":"\u003cdiv dir\u003d\"ltr\" style\u003d\"text-align: left;\" trbidi\u003d\"on\"\u003e\n\u003cspan style\u003d\"font-size: large;\"\u003e\u003cb\u003e\u0026nbsp; \u0026nbsp; \u0026nbsp; \u0026nbsp; \u0026nbsp; \u0026nbsp; \u0026nbsp; \u0026nbsp;Go through the following posts:\u003c/b\u003e\u003c/span\u003e\u003cbr /\u003e\n\u003cspan style\u003d\"font-size: large;\"\u003e\u003cb\u003e\u003cbr /\u003e\u003c/b\u003e\u003c/span\u003e\n\u003cspan style\u003d\"font-size: large;\"\u003e\u003cb style\u003d\"font-size: medium;\"\u003e\u003cspan style\u003d\"font-size: large;\"\u003e1.\u0026nbsp;\u003ca href\u003d\"http://www.comrevo.com/2016/01/how-to-create-threads-using-openmp-api.html\" target\u003d\"_blank\"\u003eHow To Create Threads using OpenMP API\u003c/a\u003e\u003c/span\u003e\u003c/b\u003e\u003c/span\u003e\u003cbr /\u003e\n\u003cbr /\u003e\n\u003cb\u003e\u003cspan style\u003d\"font-size: large;\"\u003e2.\u0026nbsp;\u003ca href\u003d\"http://www.comrevo.com/2016/01/openmp-array-sum-parallel.html\" target\u003d\"_blank\"\u003eOpenMP Program for Array Addition\u003c/a\u003e\u003c/span\u003e\u003c/b\u003e\u003cbr /\u003e\n\u003cb\u003e\u003cspan style\u003d\"font-size: large;\"\u003e\u003c/span\u003e\u003c/b\u003e\u003cbr /\u003e\n\u003ca name\u003d'more'\u003e\u003c/a\u003e\u003cb\u003e\u003cspan style\u003d\"font-size: large;\"\u003e3.\u0026nbsp;\u003ca href\u003d\"http://www.comrevo.com/2016/01/openmp-parallel-sections-example.html\" target\u003d\"_blank\"\u003eOpenMP Parallel Sections Example\u003c/a\u003e\u003c/span\u003e\u003c/b\u003e\u003cbr /\u003e\n\u003cb\u003e\u003cspan style\u003d\"font-size: large;\"\u003e\u003cbr /\u003e\u003c/span\u003e\u003cspan style\u003d\"font-size: large;\"\u003e4.\u0026nbsp;\u003ca href\u003d\"http://www.comrevo.com/2016/01/openmp-critical-section-example.html\" target\u003d\"_blank\"\u003eOpenMP Critical Section Example\u003c/a\u003e\u003c/span\u003e\u003c/b\u003e\u003cbr /\u003e\n\u003cb\u003e\u003cspan style\u003d\"font-size: large;\"\u003e\u003cbr /\u003e\u003c/span\u003e\u003c/b\u003e\n\u003cb\u003e\u003cspan style\u003d\"font-size: large;\"\u003e5. \u003ca href\u003d\"http://www.comrevo.com/2017/02/how-to-use-lock-in-openmp.html\" target\u003d\"_blank\"\u003eHow To Use Lock in OpenMP\u003c/a\u003e\u0026nbsp;\u003c/span\u003e\u003c/b\u003e\u003cbr /\u003e\n\u003cbr /\u003e\n\u003cspan style\u003d\"font-size: large;\"\u003e\u003cb\u003e\u003cspan style\u003d\"font-size: large;\"\u003e6.\u0026nbsp;\u003ca href\u003d\"http://www.comrevo.com/2015/05/openmp-program-for-n-ary-search-algorithm.html\" target\u003d\"_blank\"\u003eOpenMP program for n-ary search algorithm\u003c/a\u003e\u003c/span\u003e\u003c/b\u003e\u003c/span\u003e\u003cbr /\u003e\n\u003cb\u003e\u003cspan style\u003d\"font-size: large;\"\u003e\u003cbr /\u003e\u003c/span\u003e\u003cspan style\u003d\"font-size: large;\"\u003e7.\u0026nbsp;\u003ca href\u003d\"http://www.comrevo.com/2015/06/openmp-program-to-find-prime-numbers-from-range-1-to-n-by-parallel-processing-multi-threading.html\" target\u003d\"_blank\"\u003eOPENMP program to find prime numbers from range 1 to n by parallel processing (multi-threading)\u003c/a\u003e\u003c/span\u003e\u003c/b\u003e\u003cbr /\u003e\n\u003cbr /\u003e\n\u003cb\u003e\u003cspan style\u003d\"font-size: large;\"\u003e8.\u0026nbsp;\u003ca href\u003d\"http://www.comrevo.com/2015/08/concurrent-quicksort-program-in-c-using-openmp.html\" target\u003d\"_blank\"\u003eConcurrent Quicksort Program in C using OPENMP\u003c/a\u003e\u003c/span\u003e\u003c/b\u003e\u003cbr /\u003e\n\u003cb\u003e\u003cspan style\u003d\"font-size: large;\"\u003e\u003cbr /\u003e\u003c/span\u003e\u003cspan style\u003d\"font-size: large;\"\u003e9.\u0026nbsp;\u003ca href\u003d\"http://www.comrevo.com/2016/01/concurrent-quicksort-program-in-cpp-using-openmp.html\" target\u003d\"_blank\"\u003eConcurrent Quicksort Program in C++ using OPENMP\u003c/a\u003e\u003c/span\u003e\u003c/b\u003e\u003cbr /\u003e\n\u003cbr /\u003e\n\u003cb\u003e\u003cspan style\u003d\"font-size: large;\"\u003e10.\u0026nbsp;\u003ca href\u003d\"http://www.comrevo.com/2016/02/openmp-program-for-matrix-addition.html\" target\u003d\"_blank\"\u003eOpenMP Program for Matrix Addition\u003c/a\u003e\u003c/span\u003e\u003c/b\u003e\u003cbr /\u003e\n\u003cb\u003e\u003cspan style\u003d\"font-size: large;\"\u003e\u003cbr /\u003e\u003c/span\u003e\n\u003cspan style\u003d\"font-size: large;\"\u003e11.\u0026nbsp;\u003ca href\u003d\"http://www.comrevo.com/2016/02/openmp-program-for-merge-sort.html\" target\u003d\"_blank\"\u003eOpenMP Program for Merge Sort\u003c/a\u003e\u003c/span\u003e\u003c/b\u003e\u003cbr /\u003e\n\u003cspan style\u003d\"font-size: large;\"\u003e\u0026nbsp;\u003c/span\u003e\n\u003cbr /\u003e\n\u003cspan style\u003d\"font-size: large;\"\u003e\u003c/span\u003e\u003cbr /\u003e\n\u003cdiv style\u003d\"-webkit-text-stroke-width: 0px; color: black; font-family: 'Times New Roman'; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px;\"\u003e\n\u003c/div\u003e\n\u003cbr /\u003e\n\u003cdiv style\u003d\"-webkit-text-stroke-width: 0px; color: black; font-family: 'Times New Roman'; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px;\"\u003e\n\u003cbr class\u003d\"Apple-interchange-newline\" /\u003e\n\u003ctable border\u003d\"1\"\u003e\u003ctbody\u003e\n\u003ctr\u003e\u003ctd\u003e\u003cdiv style\u003d\"margin: 0px;\"\u003e\n\u003cspan style\u003d\"font-family: inherit; font-size: large;\"\u003e\u003cb\u003e\u0026nbsp;\u003c/b\u003e\u003cspan style\u003d\"font-size: large; font-weight: bold;\"\u003e\u0026nbsp; \u0026nbsp; \u0026nbsp; \u0026nbsp; \u0026nbsp; \u0026nbsp; \u0026nbsp; \u0026nbsp; \u0026nbsp; \u0026nbsp;\u0026nbsp;\u003c/span\u003e\u003cspan style\u003d\"color: black; font-size: large;\"\u003eAsk your\u0026nbsp;\u003cb\u003eQuestion\u003c/b\u003e\u0026nbsp;related to\u0026nbsp;\u003cb\u003eOpenMP\u003c/b\u003e\u0026nbsp;as a Comment in following\u0026nbsp;\u003cb\u003eTextbox\u003c/b\u003e.\u003c/span\u003e\u003c/span\u003e\u003c/div\u003e\n\u003cdiv style\u003d\"margin: 0px;\"\u003e\n\u003cspan style\u003d\"color: black; font-family: inherit; font-size: large;\"\u003e\u003cspan style\u003d\"font-size: large;\"\u003e\u003cbr /\u003e\u003c/span\u003e\u003cspan style\u003d\"font-size: large;\"\u003e\u0026nbsp; \u0026nbsp; \u0026nbsp; \u0026nbsp; \u0026nbsp; \u0026nbsp; \u0026nbsp; \u0026nbsp; \u0026nbsp; \u0026nbsp; You can\u0026nbsp;\u003cb\u003eAnswer\u003c/b\u003e\u0026nbsp;the already asked Question as\u0026nbsp;\u003cb\u003ereply\u003c/b\u003e\u0026nbsp;to the Question.\u0026nbsp;\u003c/span\u003e\u003c/span\u003e\u003c/div\u003e\n\u003cdiv style\u003d\"margin: 0px;\"\u003e\n\u003cspan style\u003d\"color: black; font-family: inherit; font-size: large;\"\u003e\u003cspan style\u003d\"font-size: large;\"\u003e\u003cbr /\u003e\u003c/span\u003e\u003cspan style\u003d\"font-size: small;\"\u003e\u003cspan style\u003d\"font-size: large;\"\u003e(Note: Your\u0026nbsp;\u003cb\u003eQuestion/Answer\u003c/b\u003e\u0026nbsp;will be added after validation)\u003c/span\u003e\u003c/span\u003e\u003c/span\u003e\u003c/div\u003e\n\u003cdiv\u003e\n\u003cdiv style\u003d\"margin: 0px;\"\u003e\n\u003cbr /\u003e\u003c/div\u003e\n\u003c/div\u003e\n\u003c/td\u003e\u003c/tr\u003e\n\u003c/tbody\u003e\u003c/table\u003e\n\u003c/div\u003e\n\u003c/div\u003e\n"},"link":[{"rel":"replies","type":"application/atom+xml","href":"https://www.comrevo.com/feeds/7458592267148517943/comments/default","title":"Post Comments"},{"rel":"replies","type":"text/html","href":"https://www.comrevo.com/2016/08/openmp.html#comment-form","title":"2 Comments"},{"rel":"edit","type":"application/atom+xml","href":"https://www.blogger.com/feeds/913600556879440043/posts/default/7458592267148517943"},{"rel":"self","type":"application/atom+xml","href":"https://www.blogger.com/feeds/913600556879440043/posts/default/7458592267148517943"},{"rel":"alternate","type":"text/html","href":"https://www.comrevo.com/2016/08/openmp.html","title":"OpenMP"}],"author":[{"name":{"$t":"Parag Jambhulkar"},"uri":{"$t":"https://www.blogger.com/profile/13991750622483538113"},"email":{"$t":"noreply@blogger.com"},"gd$image":{"rel":"http://schemas.google.com/g/2005#thumbnail","width":"35","height":"35","src":"//www.blogger.com/img/blogger_logo_round_35.png"}}],"thr$total":{"$t":"2"}}]}});