{"id":34258,"date":"2020-01-09T16:23:11","date_gmt":"2020-01-09T16:23:11","guid":{"rendered":"https:\/\/virtual-campus.eu\/alien\/problems\/narrow-bridge-problem-with-multi-threaded-programming\/"},"modified":"2020-01-09T16:26:44","modified_gmt":"2020-01-09T16:26:44","slug":"narrow-bridge-problem-with-multi-threaded-programming","status":"publish","type":"problem","link":"https:\/\/alien-pbl.fsktm.um.edu.my\/vi\/problems\/narrow-bridge-problem-with-multi-threaded-programming\/","title":{"rendered":"NARROW BRIDGE PROBLEM WITH MULTI-THREADED PROGRAMMING."},"content":{"rendered":"<p>Develop a program to regulate vehicle traffic over a narrow bridge to ensure the following properties:<\/p>\n<p>1. There are no vehicles moving in opposite directions on the bridge.<br \/>\n2. There shall be no more than N vehicles on the bridge.<br \/>\n3. A vehicle is not allowed to wait forever to cross the bridge, even if vehicles are constantly arriving on the other side of the bridge.<\/p>\n<p>You must code in C the solution of this problem. You will only need an editor to write your code and a gcc compiler.<\/p>","protected":false},"excerpt":{"rendered":"<p>Develop a program to regulate vehicle traffic over a narrow bridge to ensure the following properties: 1. There are no vehicles moving in opposite directions on the bridge. 2. There &#8230;<\/p>","protected":false},"author":212,"featured_media":34259,"template":"","categories":[464,366,388],"tags":[],"_links":{"self":[{"href":"https:\/\/alien-pbl.fsktm.um.edu.my\/vi\/wp-json\/wp\/v2\/problem\/34258"}],"collection":[{"href":"https:\/\/alien-pbl.fsktm.um.edu.my\/vi\/wp-json\/wp\/v2\/problem"}],"about":[{"href":"https:\/\/alien-pbl.fsktm.um.edu.my\/vi\/wp-json\/wp\/v2\/types\/problem"}],"author":[{"embeddable":true,"href":"https:\/\/alien-pbl.fsktm.um.edu.my\/vi\/wp-json\/wp\/v2\/users\/212"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/alien-pbl.fsktm.um.edu.my\/vi\/wp-json\/wp\/v2\/media\/34259"}],"wp:attachment":[{"href":"https:\/\/alien-pbl.fsktm.um.edu.my\/vi\/wp-json\/wp\/v2\/media?parent=34258"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/alien-pbl.fsktm.um.edu.my\/vi\/wp-json\/wp\/v2\/categories?post=34258"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/alien-pbl.fsktm.um.edu.my\/vi\/wp-json\/wp\/v2\/tags?post=34258"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}