{"id":292,"date":"2020-03-17T22:11:51","date_gmt":"2020-03-17T22:11:51","guid":{"rendered":"https:\/\/edupez.com\/?p=292"},"modified":"2020-03-17T22:11:51","modified_gmt":"2020-03-17T22:11:51","slug":"labview-tip-25-producer-consumer-with-semaphore","status":"publish","type":"post","link":"https:\/\/edupez.com\/labview\/2020\/03\/17\/labview-tip-25-producer-consumer-with-semaphore\/","title":{"rendered":"LABVIEW \u2013 Tip #25 \u2013 Producer \/ Consumer With Semaphore"},"content":{"rendered":"\n<p> Level : Advanced<\/p>\n\n\n\n<p>When we have more than one producer and we just want that only one to be executed one per time, accordingly to their availability, we can use semaphore.<br> The semaphores will be waiting, per arrival order, of the release of the semaphore that is being executed, allowing by this way that both never work simultaneously.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" width=\"599\" height=\"1024\" src=\"https:\/\/edupez.com\/wp-content\/uploads\/2020\/03\/25-1-599x1024.jpg\" alt=\"\" class=\"wp-image-293\" srcset=\"https:\/\/edupez.com\/wp-content\/uploads\/2020\/03\/25-1-599x1024.jpg 599w, https:\/\/edupez.com\/wp-content\/uploads\/2020\/03\/25-1-176x300.jpg 176w, https:\/\/edupez.com\/wp-content\/uploads\/2020\/03\/25-1-768x1313.jpg 768w, https:\/\/edupez.com\/wp-content\/uploads\/2020\/03\/25-1-899x1536.jpg 899w, https:\/\/edupez.com\/wp-content\/uploads\/2020\/03\/25-1.jpg 936w\" sizes=\"(max-width: 599px) 85vw, 599px\" \/><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>Level : Advanced When we have more than one producer and we just want that only one to be executed one per time, accordingly to their availability, we can use semaphore. The semaphores will be waiting, per arrival order, of the release of the semaphore that is being executed, allowing by this way that both &hellip; <a href=\"https:\/\/edupez.com\/labview\/2020\/03\/17\/labview-tip-25-producer-consumer-with-semaphore\/\" class=\"more-link\">Continuar a ler<span class=\"screen-reader-text\"> &#8220;LABVIEW \u2013 Tip #25 \u2013 Producer \/ Consumer With Semaphore&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[9],"tags":[],"_links":{"self":[{"href":"https:\/\/edupez.com\/labview\/wp-json\/wp\/v2\/posts\/292"}],"collection":[{"href":"https:\/\/edupez.com\/labview\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/edupez.com\/labview\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/edupez.com\/labview\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/edupez.com\/labview\/wp-json\/wp\/v2\/comments?post=292"}],"version-history":[{"count":1,"href":"https:\/\/edupez.com\/labview\/wp-json\/wp\/v2\/posts\/292\/revisions"}],"predecessor-version":[{"id":294,"href":"https:\/\/edupez.com\/labview\/wp-json\/wp\/v2\/posts\/292\/revisions\/294"}],"wp:attachment":[{"href":"https:\/\/edupez.com\/labview\/wp-json\/wp\/v2\/media?parent=292"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/edupez.com\/labview\/wp-json\/wp\/v2\/categories?post=292"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/edupez.com\/labview\/wp-json\/wp\/v2\/tags?post=292"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}