// API callback
related_results_labels_thumbs({"version":"1.0","encoding":"UTF-8","feed":{"xmlns":"http://www.w3.org/2005/Atom","xmlns$openSearch":"http://a9.com/-/spec/opensearchrss/1.0/","xmlns$blogger":"http://schemas.google.com/blogger/2008","xmlns$georss":"http://www.georss.org/georss","xmlns$gd":"http://schemas.google.com/g/2005","xmlns$thr":"http://purl.org/syndication/thread/1.0","id":{"$t":"tag:blogger.com,1999:blog-913600556879440043"},"updated":{"$t":"2024-01-01T15:38:08.302+05:30"},"category":[{"term":"Java"},{"term":"General"},{"term":"C Plus Plus Programming"},{"term":"Selenium Automation Testing"},{"term":"High Performance Computing"},{"term":"PPL"},{"term":"Parallel Computing"},{"term":"My Vlogs"},{"term":"Blogging Tips"},{"term":"Skill Development Lab"},{"term":"Compiler"},{"term":"Website Designing"},{"term":"Data Structures"},{"term":"Android"},{"term":"Database"},{"term":"CUDA"},{"term":"OPENMP"},{"term":"YouTube Tips"},{"term":"Youtube"},{"term":"C Programming"},{"term":"How To Write Blog"},{"term":"Android App Development"},{"term":"Salesforce"},{"term":"Multithreading"},{"term":"Networking"},{"term":"Swing"},{"term":"LEX \u0026 YACC"},{"term":"Linux"},{"term":"Ubuntu"},{"term":"Mysql"},{"term":"Nanded City Pune"},{"term":"GATE"},{"term":"Cloud Computing"},{"term":"MS Excel Formulas \u0026 Functions"},{"term":"Applet"},{"term":"Computer Networks"},{"term":"Google Forms"},{"term":"SQL"},{"term":"MPI"},{"term":"OpenMPI"},{"term":"Socket Programming"},{"term":"Thread Pool"},{"term":"Amazon Links Summary"},{"term":"Fedora"},{"term":"Guest Blogging"},{"term":"Python"},{"term":"SDL"},{"term":"Wine"},{"term":"Abbreviations in Computer Science"},{"term":"Amazon Affiliate Program"},{"term":"Dia Software"},{"term":"Lisp"},{"term":"Mathematics"},{"term":"OPENCL"},{"term":"Udemy Courses"},{"term":"Unboxing \u0026 Review"},{"term":"Vedic Mathematics"},{"term":"Vocabulary"}],"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.comrevo.com\/feeds\/posts\/default"},{"rel":"self","type":"application/atom+xml","href":"https:\/\/www.blogger.com\/feeds\/913600556879440043\/posts\/default\/-\/OPENMP?alt=json-in-script\u0026max-results=6"},{"rel":"alternate","type":"text/html","href":"https:\/\/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=json-in-script\u0026start-index=7\u0026max-results=6"}],"author":[{"name":{"$t":"Parag Jambhulkar"},"uri":{"$t":"http:\/\/www.blogger.com\/profile\/13991750622483538113"},"email":{"$t":"noreply@blogger.com"},"gd$image":{"rel":"http://schemas.google.com/g/2005#thumbnail","width":"16","height":"16","src":"https:\/\/img1.blogblog.com\/img\/b16-rounded.gif"}}],"generator":{"version":"7.00","uri":"http://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":"High Performance Computing"},{"scheme":"http://www.blogger.com/atom/ns#","term":"OPENMP"}],"title":{"type":"text","$t":"OpenMP Lock with Example | How To Use Lock in OpenMP | Thread Synchronization in OpenMP"},"content":{"type":"html","$t":"\u003Cdiv dir=\"ltr\" style=\"text-align: left;\" trbidi=\"on\"\u003E\n\u003Cspan style=\"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=\"font-size: large;\"\u003E\u003Cbr \/\u003E\u003C\/span\u003E\n\u003Cspan style=\"font-size: large;\"\u003EWatch this video to know about OpenMP Lock:\u003C\/span\u003E\u003Cbr \/\u003E\n\u003Cspan style=\"font-size: large;\"\u003E\u003Cbr \/\u003E\u003C\/span\u003E\n\u003Ciframe allow=\"accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture\" allowfullscreen=\"\" frameborder=\"0\" height=\"360\" src=\"https:\/\/www.youtube.com\/embed\/ZXT63uh-YmI\" width=\"640\"\u003E\u003C\/iframe\u003E\n\n\u003Cspan style=\"font-size: large;\"\u003E\u003Cbr \/\u003E\u003C\/span\u003E\n\u003Cspan style=\"font-size: large;\"\u003E\u003Cb\u003E\u003Cbr \/\u003E\u003C\/b\u003E\u003C\/span\u003E\u003Cbr \/\u003E\n\u003Cspan style=\"font-size: large;\"\u003E\u003Cb\u003EWatch on YouTube:\u0026nbsp;\u003Ca href=\"https:\/\/www.youtube.com\/watch?v=ZXT63uh-YmI\" target=\"_blank\"\u003Ehttps:\/\/www.youtube.com\/watch?v=ZXT63uh-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":"http:\/\/www.blogger.com\/profile\/13991750622483538113"},"email":{"$t":"noreply@blogger.com"},"gd$image":{"rel":"http://schemas.google.com/g/2005#thumbnail","width":"16","height":"16","src":"https:\/\/img1.blogblog.com\/img\/b16-rounded.gif"}}],"media$thumbnail":{"xmlns$media":"http://search.yahoo.com/mrss/","url":"https:\/\/img.youtube.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":"High Performance Computing"},{"scheme":"http://www.blogger.com/atom/ns#","term":"OPENMP"}],"title":{"type":"text","$t":"OpenMP Critical Section with Example | How To Synchronize Threads in OpenMP"},"content":{"type":"html","$t":"\u003Cdiv dir=\"ltr\" style=\"text-align: left;\" trbidi=\"on\"\u003E\n\u003Cspan style=\"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=\"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=\"accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture\" allowfullscreen=\"\" frameborder=\"0\" height=\"360\" src=\"https:\/\/www.youtube.com\/embed\/5yla68mLVoM\" width=\"640\"\u003E\u003C\/iframe\u003E\n\n\u003Cbr \/\u003E\n\u003Cbr \/\u003E\n\u003Cb\u003E\u003Cspan style=\"font-size: large;\"\u003EWatch on YouTube:\u0026nbsp;\u003Ca href=\"https:\/\/www.youtube.com\/watch?v=5yla68mLVoM\" target=\"_blank\"\u003Ehttps:\/\/www.youtube.com\/watch?v=5yla68mLVoM\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":"http:\/\/www.blogger.com\/profile\/13991750622483538113"},"email":{"$t":"noreply@blogger.com"},"gd$image":{"rel":"http://schemas.google.com/g/2005#thumbnail","width":"16","height":"16","src":"https:\/\/img1.blogblog.com\/img\/b16-rounded.gif"}}],"media$thumbnail":{"xmlns$media":"http://search.yahoo.com/mrss/","url":"https:\/\/img.youtube.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":"High Performance Computing"},{"scheme":"http://www.blogger.com/atom/ns#","term":"OPENMP"}],"title":{"type":"text","$t":"OpenMP Sections | OpenMP Section Example | OpenMP Parallel Sections"},"content":{"type":"html","$t":"\u003Cdiv dir=\"ltr\" style=\"text-align: left;\" trbidi=\"on\"\u003E\n\u003Cspan style=\"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=\"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=\"accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture\" allowfullscreen=\"\" frameborder=\"0\" height=\"360\" src=\"https:\/\/www.youtube.com\/embed\/KMEXW2lZ_-0\" width=\"640\"\u003E\u003C\/iframe\u003E\n\n\n\u003Cbr \/\u003E\n\u003Cbr \/\u003E\n\u003Cb\u003E\u003Cspan style=\"font-size: large;\"\u003EWatch on YouTube:\u0026nbsp;\u003Ca href=\"https:\/\/www.youtube.com\/watch?v=KMEXW2lZ_-0\" target=\"_blank\"\u003Ehttps:\/\/www.youtube.com\/watch?v=KMEXW2lZ_-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":"http:\/\/www.blogger.com\/profile\/13991750622483538113"},"email":{"$t":"noreply@blogger.com"},"gd$image":{"rel":"http://schemas.google.com/g/2005#thumbnail","width":"16","height":"16","src":"https:\/\/img1.blogblog.com\/img\/b16-rounded.gif"}}],"media$thumbnail":{"xmlns$media":"http://search.yahoo.com/mrss/","url":"https:\/\/img.youtube.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":"High Performance Computing"},{"scheme":"http://www.blogger.com/atom/ns#","term":"OPENMP"}],"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=\"ltr\" style=\"text-align: left;\" trbidi=\"on\"\u003E\n\u003Cspan style=\"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=\"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=\"accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture\" allowfullscreen=\"\" frameborder=\"0\" height=\"360\" src=\"https:\/\/www.youtube.com\/embed\/B7-Qnu2vZDc\" width=\"640\"\u003E\u003C\/iframe\u003E\n\n\u003Cbr \/\u003E\n\u003Cbr \/\u003E\n\u003Cb\u003E\u003Cspan style=\"font-size: large;\"\u003EWatch on YouTube:\u0026nbsp;\u003Ca href=\"https:\/\/www.youtube.com\/watch?v=B7-Qnu2vZDc\" target=\"_blank\"\u003Ehttps:\/\/www.youtube.com\/watch?v=B7-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":"http:\/\/www.blogger.com\/profile\/13991750622483538113"},"email":{"$t":"noreply@blogger.com"},"gd$image":{"rel":"http://schemas.google.com/g/2005#thumbnail","width":"16","height":"16","src":"https:\/\/img1.blogblog.com\/img\/b16-rounded.gif"}}],"media$thumbnail":{"xmlns$media":"http://search.yahoo.com/mrss/","url":"https:\/\/img.youtube.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=\"ltr\" style=\"text-align: left;\" trbidi=\"on\"\u003E\n\u003Cspan style=\"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=\"ltr\" style=\"text-align: left;\" trbidi=\"on\"\u003E\u003Cspan style=\"font-size: large;\"\u003E\u003Cbr \/\u003E\u003C\/span\u003E\u003C\/div\u003E\u003Cdiv dir=\"ltr\" style=\"text-align: left;\" trbidi=\"on\"\u003E\u003Cspan style=\"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=\"font-size: large;\"\u003E\"#pragma omp critical \". In this post, we will see how to use OpenMP Lock.\u003C\/span\u003E\u003Cspan style=\"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=\"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=\"ltr\" style=\"text-align: left;\" trbidi=\"on\"\u003E\u003Cspan style=\"font-size: large;\"\u003E\u003Cbr \/\u003E\u003C\/span\u003E\u003C\/div\u003E\u003Cdiv dir=\"ltr\" style=\"text-align: left;\" trbidi=\"on\"\u003E\u003Cdiv dir=\"ltr\" trbidi=\"on\"\u003E\u003Cspan style=\"font-size: large;\"\u003EWatch following video:\u003C\/span\u003E\u003C\/div\u003E\u003Cdiv dir=\"ltr\" trbidi=\"on\"\u003E\u003Cspan style=\"font-size: large;\"\u003E\u003Cbr \/\u003E\u003Ciframe allow=\"accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture\" allowfullscreen=\"\" frameborder=\"0\" height=\"360\" src=\"https:\/\/www.youtube.com\/embed\/ZXT63uh-YmI\" width=\"640\"\u003E\u003C\/iframe\u003E\u003C\/span\u003E\u003C\/div\u003E\u003Cdiv dir=\"ltr\" trbidi=\"on\"\u003E\u003Cspan style=\"font-size: large;\"\u003E\u003Cb\u003EWatch on YouTube:\u0026nbsp;\u003Ca href=\"https:\/\/www.youtube.com\/watch?v=ZXT63uh-YmI\" target=\"_blank\"\u003Ehttps:\/\/www.youtube.com\/watch?v=ZXT63uh-YmI\u003C\/a\u003E\u003C\/b\u003E\u003C\/span\u003E\u003C\/div\u003E\u003C\/div\u003E\u003Cdiv dir=\"ltr\" style=\"text-align: left;\" trbidi=\"on\"\u003E\u003Cbr \/\u003E\u003C\/div\u003E\u003Cdiv dir=\"ltr\" style=\"text-align: left;\" trbidi=\"on\"\u003E\n\u003Cdiv dir=\"ltr\" style=\"text-align: left;\" trbidi=\"on\"\u003E\n\u003Cspan style=\"font-size: large;\"\u003E\u0026nbsp; \u0026nbsp; \u0026nbsp; \u0026nbsp; \u0026nbsp; \u0026nbsp; \u0026nbsp; \u0026nbsp; \u0026nbsp;\u003C\/span\u003E\u003Cspan style=\"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=\"font-size: large;\"\u003E\u003Cbr \/\u003E\u003C\/span\u003E\n\u003Cbr \/\u003E\n\u003Ca name='more'\u003E\u003C\/a\u003E\u003Cb\u003E\u003Cspan style=\"font-size: large;\"\u003EProgram: (program.c)\u003C\/span\u003E\u003C\/b\u003E\u003Cbr \/\u003E\n\u003Cspan style=\"font-size: large;\"\u003E\u003Cbr \/\u003E\u003C\/span\u003E\n\u003Cbr \/\u003E\n\u003Cdiv style=\"background-color: lightgreen;\"\u003E\n\u003Cspan style=\"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=0;\u003Cbr \/\u003E\u003Cbr \/\u003E#pragma omp parallel num_threads(300)\u003Cbr \/\u003E{\u003Cbr \/\u003Ex=x+1;\u003Cbr \/\u003E}\u003Cbr \/\u003E\u003Cbr \/\u003Eprintf(\"x=%d\\n\",x);\u003Cbr \/\u003E}\u003C\/span\u003E\u003C\/div\u003E\n\u003Cspan style=\"font-size: large;\"\u003E\u003Cbr \/\u003E\u003C\/span\u003E\n\u003Cb\u003E\u003Cspan style=\"font-size: large;\"\u003EHow To Run:\u0026nbsp;\u003C\/span\u003E\u003C\/b\u003E\u003Cbr \/\u003E\n\u003Cu\u003E\u003Cspan style=\"font-size: large;\"\u003ETo Compile:\u003C\/span\u003E\u003C\/u\u003E\u003Cbr \/\u003E\n\u003Cspan style=\"font-size: large;\"\u003Egcc -fopenmp program.c\u0026nbsp;\u003C\/span\u003E\u003Cb\u003E\u003Cspan style=\"font-size: large;\"\u003E\u0026nbsp;\u0026nbsp;\u003C\/span\u003E\u003C\/b\u003E\u003Cbr \/\u003E\n\u003Cb\u003E\u003Cspan style=\"font-size: large;\"\u003E\u003Cbr \/\u003E\u003C\/span\u003E\u003C\/b\u003E\u003Cu\u003E\u003Cspan style=\"font-size: large;\"\u003ETo Run:\u003C\/span\u003E\u003C\/u\u003E\u003Cbr \/\u003E\n\u003Cspan style=\"font-size: large;\"\u003E.\/a.out\u003C\/span\u003E\u003Cbr \/\u003E\n\u003Cspan style=\"font-size: large;\"\u003E\u003Cbr \/\u003E\u003C\/span\u003E\n\u003Cb\u003E\u003Cspan style=\"font-size: large;\"\u003EOutput:\u003C\/span\u003E\u003C\/b\u003E\u003Cbr \/\u003E\n\u003Cdiv class=\"separator\" style=\"clear: both; text-align: center;\"\u003E\n\u003Ca href=\"https:\/\/2.bp.blogspot.com\/-9Ylev_EnYaw\/WKqoGs20jaI\/AAAAAAAADZk\/N1YqQ1AVM3cs1Q6uhSNE1tRrDj3AKmtygCLcB\/s1600\/programs.jpeg\" style=\"margin-left: 1em; margin-right: 1em;\"\u003E\u003Cspan style=\"font-size: large;\"\u003E\u003Cimg border=\"0\" src=\"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=\"font-size: large;\"\u003E\u003Cbr \/\u003E\u003C\/span\u003E\u003C\/b\u003E\n\u003Cbr \/\u003E\n\u003Cdiv class=\"separator\" style=\"clear: both; text-align: center;\"\u003E\n\u003C\/div\u003E\n\u003Cspan style=\"font-size: large;\"\u003E\u003Cbr \/\u003E\u003C\/span\u003E\n\u003Cb\u003E\u003Cspan style=\"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=\"font-size: large;\"\u003ECheck above output. We were expecting output as \"x=300\". 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=\"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=\"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=\"font-size: large;\"\u003E\u0026nbsp; \u0026nbsp; \u0026nbsp; \u0026nbsp; \u0026nbsp; \u0026nbsp; \u0026nbsp; \u0026nbsp; \u0026nbsp;Check following program:\u003C\/span\u003E\u003Cbr \/\u003E\n\u003Cspan style=\"font-size: large;\"\u003E\u003Cbr \/\u003E\u003C\/span\u003E\n\u003Cb\u003E\u003Cspan style=\"font-size: large;\"\u003EProgram: (\u003C\/span\u003E\u003C\/b\u003E\u003Cspan style=\"font-size: large;\"\u003E\u003Cb\u003Eopenmplocks.c\u003C\/b\u003E\u003C\/span\u003E\u003Cb\u003E\u003Cspan style=\"font-size: large;\"\u003E)\u003C\/span\u003E\u003C\/b\u003E\u003Cbr \/\u003E\n\u003Cspan style=\"font-size: large;\"\u003E\u003Cbr \/\u003E\u003C\/span\u003E\n\u003Cbr \/\u003E\n\u003Cdiv style=\"background-color: lightgreen;\"\u003E\n\u003Cspan style=\"font-size: large;\"\u003E#include\u0026lt;stdio.h\u0026gt;\u003C\/span\u003E\u003Cbr \/\u003E\n\u003Cspan style=\"font-size: large;\"\u003E#include\u0026lt;omp.h\u0026gt;\u003C\/span\u003E\u003Cbr \/\u003E\n\u003Cspan style=\"font-size: large;\"\u003E\u003Cbr \/\u003E\u003C\/span\u003E\n\u003Cspan style=\"font-size: large;\"\u003Evoid main()\u003C\/span\u003E\u003Cbr \/\u003E\n\u003Cspan style=\"font-size: large;\"\u003E{\u003C\/span\u003E\u003Cbr \/\u003E\n\u003Cspan style=\"font-size: large;\"\u003Eint x=0;\u003C\/span\u003E\u003Cbr \/\u003E\n\u003Cspan style=\"font-size: large;\"\u003E\u003Cbr \/\u003E\u003C\/span\u003E\n\u003Cspan style=\"font-size: large;\"\u003Eomp_lock_t writelock;\u003C\/span\u003E\u003Cbr \/\u003E\n\u003Cspan style=\"font-size: large;\"\u003E\u003Cbr \/\u003E\u003C\/span\u003E\n\u003Cspan style=\"font-size: large;\"\u003Eomp_init_lock(\u0026amp;writelock);\u003C\/span\u003E\u003Cbr \/\u003E\n\u003Cspan style=\"font-size: large;\"\u003E\u003Cbr \/\u003E\u003C\/span\u003E\n\u003Cspan style=\"font-size: large;\"\u003E#pragma omp parallel num_threads(300)\u003C\/span\u003E\u003Cbr \/\u003E\n\u003Cspan style=\"font-size: large;\"\u003E{\u003C\/span\u003E\u003Cbr \/\u003E\n\u003Cspan style=\"font-size: large;\"\u003Eomp_set_lock(\u0026amp;writelock);\u003C\/span\u003E\u003Cbr \/\u003E\n\u003Cspan style=\"font-size: large;\"\u003Ex=x+1;\u003C\/span\u003E\u003Cbr \/\u003E\n\u003Cspan style=\"font-size: large;\"\u003Eomp_unset_lock(\u0026amp;writelock);\u003C\/span\u003E\u003Cbr \/\u003E\n\u003Cspan style=\"font-size: large;\"\u003E}\u003C\/span\u003E\u003Cbr \/\u003E\n\u003Cspan style=\"font-size: large;\"\u003E\u003Cbr \/\u003E\u003C\/span\u003E\n\u003Cspan style=\"font-size: large;\"\u003Eprintf(\"x=%d\\n\",x);\u003C\/span\u003E\u003Cbr \/\u003E\n\u003Cspan style=\"font-size: large;\"\u003E\u003Cbr \/\u003E\u003C\/span\u003E\n\u003Cspan style=\"font-size: large;\"\u003Eomp_destroy_lock(\u0026amp;writelock);\u003C\/span\u003E\u003Cbr \/\u003E\n\u003Cspan style=\"font-size: large;\"\u003E}\u003C\/span\u003E\u003Cbr \/\u003E\n\u003Cspan style=\"font-size: large;\"\u003E\u003Cbr \/\u003E\u003C\/span\u003E\u003C\/div\u003E\n\u003Cdiv\u003E\n\u003Cspan style=\"font-size: large;\"\u003E\u003Cbr \/\u003E\u003C\/span\u003E\n\u003Cb\u003E\u003Cspan style=\"font-size: large;\"\u003EHow To Run:\u0026nbsp;\u003C\/span\u003E\u003C\/b\u003E\u003Cbr \/\u003E\n\u003Cu\u003E\u003Cspan style=\"font-size: large;\"\u003ETo Compile:\u003C\/span\u003E\u003C\/u\u003E\u003Cbr \/\u003E\n\u003Cspan style=\"font-size: large;\"\u003Egcc -fopenmp openmplocks.c\u0026nbsp;\u003C\/span\u003E\u003Cb\u003E\u003Cspan style=\"font-size: large;\"\u003E\u0026nbsp;\u0026nbsp;\u003C\/span\u003E\u003C\/b\u003E\u003Cbr \/\u003E\n\u003Cb\u003E\u003Cspan style=\"font-size: large;\"\u003E\u003Cbr \/\u003E\u003C\/span\u003E\u003C\/b\u003E\u003Cu\u003E\u003Cspan style=\"font-size: large;\"\u003ETo Run:\u003C\/span\u003E\u003C\/u\u003E\u003Cbr \/\u003E\n\u003Cspan style=\"font-size: large;\"\u003E.\/a.out\u003C\/span\u003E\u003C\/div\u003E\n\u003Cdiv\u003E\n\u003Cspan style=\"font-size: large;\"\u003E\u003Cbr \/\u003E\u003C\/span\u003E\n\u003Cspan style=\"font-size: large;\"\u003E\u003Cb\u003EOutput:\u003C\/b\u003E\u0026nbsp;\u003C\/span\u003E\u003Cbr \/\u003E\n\u003Cdiv class=\"separator\" style=\"clear: both; text-align: center;\"\u003E\n\u003C\/div\u003E\n\u003C\/div\u003E\n\u003Cdiv\u003E\n\u003Cdiv class=\"separator\" style=\"clear: both; text-align: center;\"\u003E\n\u003C\/div\u003E\n\u003Cdiv class=\"separator\" style=\"clear: both; text-align: center;\"\u003E\n\u003Ca href=\"http:\/\/4.bp.blogspot.com\/-SyavDeCPSEQ\/VpztDd5LkCI\/AAAAAAAACwM\/BxmqTZjJ0To\/s1600\/openmpcritical.jpeg\" style=\"margin-left: 1em; margin-right: 1em;\"\u003E\u003Cspan style=\"font-size: large;\"\u003E\u003C\/span\u003E\u003C\/a\u003E\u003C\/div\u003E\n\u003Cdiv class=\"separator\" style=\"clear: both; text-align: center;\"\u003E\n\u003C\/div\u003E\n\u003Cdiv class=\"separator\" style=\"clear: both; text-align: center;\"\u003E\n\u003C\/div\u003E\n\u003Cdiv class=\"separator\" style=\"clear: both; text-align: center;\"\u003E\n\u003Ca href=\"https:\/\/2.bp.blogspot.com\/-E2-Lqe7D2Ps\/WKqogAcbvtI\/AAAAAAAADZs\/nIDUnScfsT8xhApYwKgIWyUJeFRf4Jy2QCEw\/s1600\/openmplocks.jpeg\" style=\"margin-left: 1em; margin-right: 1em;\"\u003E\u003Cimg border=\"0\" src=\"https:\/\/2.bp.blogspot.com\/-E2-Lqe7D2Ps\/WKqogAcbvtI\/AAAAAAAADZs\/nIDUnScfsT8xhApYwKgIWyUJeFRf4Jy2QCEw\/s1600\/openmplocks.jpeg\" \/\u003E\u003C\/a\u003E\u003C\/div\u003E\n\u003Cspan style=\"font-size: large;\"\u003E\u003Cbr \/\u003E\u003C\/span\u003E\n\u003Cspan style=\"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=\"font-size: large;\"\u003EHere, for each execution, we got \"x=300\" because at one instance only one thread was incrementing the value of x.\u003C\/span\u003E\u003C\/span\u003E\u003Cbr \/\u003E\n\u003Cspan style=\"font-size: large;\"\u003E\u003Cbr \/\u003E\u003C\/span\u003E\n\u003Cspan style=\"font-size: large;\"\u003E\u003Cb\u003E\u003Cu\u003ENote:\u003C\/u\u003E\u003C\/b\u003E\u003C\/span\u003E\u003Cbr \/\u003E\n\u003Cspan style=\"font-size: large;\"\u003E1. omp_lock_t is data type used to declare lock variable.\u003C\/span\u003E\u003Cbr \/\u003E\n\u003Cspan style=\"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=\"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=\"font-size: large;\"\u003Eomp_unset_lock().\u003C\/span\u003E\u003Cbr \/\u003E\n\u003Cspan style=\"font-size: large;\"\u003E4.\u0026nbsp;\u003C\/span\u003E\u003Cspan style=\"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=\"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=\"font-size: large;\"\u003E\u003Cbr \/\u003E\u003C\/span\u003E\n\u003Cbr \/\u003E\n\u003Cdiv\u003E\n\u003Ccenter\u003E\n\u003Ctable border=\"1\"\u003E\u003Ctbody\u003E\n\u003Ctr\u003E\u003Ctd\u003E\u003Cspan style=\"font-size: large;\"\u003E\u003Cb\u003E\u003Ca href=\"http:\/\/www.comrevo.com\/2016\/08\/openmp.html\" target=\"_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":"http:\/\/www.blogger.com\/profile\/13991750622483538113"},"email":{"$t":"noreply@blogger.com"},"gd$image":{"rel":"http://schemas.google.com/g/2005#thumbnail","width":"16","height":"16","src":"https:\/\/img1.blogblog.com\/img\/b16-rounded.gif"}}],"media$thumbnail":{"xmlns$media":"http://search.yahoo.com/mrss/","url":"https:\/\/img.youtube.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=\"ltr\" style=\"text-align: left;\" trbidi=\"on\"\u003E\n\u003Cspan style=\"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=\"font-size: large;\"\u003E\u003Cb\u003E\u003Cbr \/\u003E\u003C\/b\u003E\u003C\/span\u003E\n\u003Cspan style=\"font-size: large;\"\u003E\u003Cb style=\"font-size: medium;\"\u003E\u003Cspan style=\"font-size: large;\"\u003E1.\u0026nbsp;\u003Ca href=\"http:\/\/www.comrevo.com\/2016\/01\/how-to-create-threads-using-openmp-api.html\" target=\"_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=\"font-size: large;\"\u003E2.\u0026nbsp;\u003Ca href=\"http:\/\/www.comrevo.com\/2016\/01\/openmp-array-sum-parallel.html\" target=\"_blank\"\u003EOpenMP Program for Array Addition\u003C\/a\u003E\u003C\/span\u003E\u003C\/b\u003E\u003Cbr \/\u003E\n\u003Cb\u003E\u003Cspan style=\"font-size: large;\"\u003E\u003C\/span\u003E\u003C\/b\u003E\u003Cbr \/\u003E\n\u003Ca name='more'\u003E\u003C\/a\u003E\u003Cb\u003E\u003Cspan style=\"font-size: large;\"\u003E3.\u0026nbsp;\u003Ca href=\"http:\/\/www.comrevo.com\/2016\/01\/openmp-parallel-sections-example.html\" target=\"_blank\"\u003EOpenMP Parallel Sections Example\u003C\/a\u003E\u003C\/span\u003E\u003C\/b\u003E\u003Cbr \/\u003E\n\u003Cb\u003E\u003Cspan style=\"font-size: large;\"\u003E\u003Cbr \/\u003E\u003C\/span\u003E\u003Cspan style=\"font-size: large;\"\u003E4.\u0026nbsp;\u003Ca href=\"http:\/\/www.comrevo.com\/2016\/01\/openmp-critical-section-example.html\" target=\"_blank\"\u003EOpenMP Critical Section Example\u003C\/a\u003E\u003C\/span\u003E\u003C\/b\u003E\u003Cbr \/\u003E\n\u003Cb\u003E\u003Cspan style=\"font-size: large;\"\u003E\u003Cbr \/\u003E\u003C\/span\u003E\u003C\/b\u003E\n\u003Cb\u003E\u003Cspan style=\"font-size: large;\"\u003E5. \u003Ca href=\"http:\/\/www.comrevo.com\/2017\/02\/how-to-use-lock-in-openmp.html\" target=\"_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=\"font-size: large;\"\u003E\u003Cb\u003E\u003Cspan style=\"font-size: large;\"\u003E6.\u0026nbsp;\u003Ca href=\"http:\/\/www.comrevo.com\/2015\/05\/openmp-program-for-n-ary-search-algorithm.html\" target=\"_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=\"font-size: large;\"\u003E\u003Cbr \/\u003E\u003C\/span\u003E\u003Cspan style=\"font-size: large;\"\u003E7.\u0026nbsp;\u003Ca href=\"http:\/\/www.comrevo.com\/2015\/06\/openmp-program-to-find-prime-numbers-from-range-1-to-n-by-parallel-processing-multi-threading.html\" target=\"_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=\"font-size: large;\"\u003E8.\u0026nbsp;\u003Ca href=\"http:\/\/www.comrevo.com\/2015\/08\/concurrent-quicksort-program-in-c-using-openmp.html\" target=\"_blank\"\u003EConcurrent Quicksort Program in C using OPENMP\u003C\/a\u003E\u003C\/span\u003E\u003C\/b\u003E\u003Cbr \/\u003E\n\u003Cb\u003E\u003Cspan style=\"font-size: large;\"\u003E\u003Cbr \/\u003E\u003C\/span\u003E\u003Cspan style=\"font-size: large;\"\u003E9.\u0026nbsp;\u003Ca href=\"http:\/\/www.comrevo.com\/2016\/01\/concurrent-quicksort-program-in-cpp-using-openmp.html\" target=\"_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=\"font-size: large;\"\u003E10.\u0026nbsp;\u003Ca href=\"http:\/\/www.comrevo.com\/2016\/02\/openmp-program-for-matrix-addition.html\" target=\"_blank\"\u003EOpenMP Program for Matrix Addition\u003C\/a\u003E\u003C\/span\u003E\u003C\/b\u003E\u003Cbr \/\u003E\n\u003Cb\u003E\u003Cspan style=\"font-size: large;\"\u003E\u003Cbr \/\u003E\u003C\/span\u003E\n\u003Cspan style=\"font-size: large;\"\u003E11.\u0026nbsp;\u003Ca href=\"http:\/\/www.comrevo.com\/2016\/02\/openmp-program-for-merge-sort.html\" target=\"_blank\"\u003EOpenMP Program for Merge Sort\u003C\/a\u003E\u003C\/span\u003E\u003C\/b\u003E\u003Cbr \/\u003E\n\u003Cspan style=\"font-size: large;\"\u003E\u0026nbsp;\u003C\/span\u003E\n\u003Cbr \/\u003E\n\u003Cspan style=\"font-size: large;\"\u003E\u003C\/span\u003E\u003Cbr \/\u003E\n\u003Cdiv style=\"-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=\"-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=\"Apple-interchange-newline\" \/\u003E\n\u003Ctable border=\"1\"\u003E\u003Ctbody\u003E\n\u003Ctr\u003E\u003Ctd\u003E\u003Cdiv style=\"margin: 0px;\"\u003E\n\u003Cspan style=\"font-family: inherit; font-size: large;\"\u003E\u003Cb\u003E\u0026nbsp;\u003C\/b\u003E\u003Cspan style=\"font-size: large; font-weight: bold;\"\u003E\u0026nbsp; \u0026nbsp; \u0026nbsp; \u0026nbsp; \u0026nbsp; \u0026nbsp; \u0026nbsp; \u0026nbsp; \u0026nbsp; \u0026nbsp;\u0026nbsp;\u003C\/span\u003E\u003Cspan style=\"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=\"margin: 0px;\"\u003E\n\u003Cspan style=\"color: black; font-family: inherit; font-size: large;\"\u003E\u003Cspan style=\"font-size: large;\"\u003E\u003Cbr \/\u003E\u003C\/span\u003E\u003Cspan style=\"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=\"margin: 0px;\"\u003E\n\u003Cspan style=\"color: black; font-family: inherit; font-size: large;\"\u003E\u003Cspan style=\"font-size: large;\"\u003E\u003Cbr \/\u003E\u003C\/span\u003E\u003Cspan style=\"font-size: small;\"\u003E\u003Cspan style=\"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=\"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":"http:\/\/www.blogger.com\/profile\/13991750622483538113"},"email":{"$t":"noreply@blogger.com"},"gd$image":{"rel":"http://schemas.google.com/g/2005#thumbnail","width":"16","height":"16","src":"https:\/\/img1.blogblog.com\/img\/b16-rounded.gif"}}],"thr$total":{"$t":"2"}}]}});