EWU Institutional Repository

Operating System Semaphore Demo

Show simple item record

dc.contributor.author Uddin, Md. Khaled Saif
dc.date.accessioned 2023-08-24T05:25:10Z
dc.date.available 2023-08-24T05:25:10Z
dc.date.issued 1999-03-08
dc.identifier.uri http://dspace.ewubd.edu:8080/handle/123456789/4094
dc.description This thesis submitted in partial fulfillment of the requirements for the degree of Bachelor of Science in Computer Science and Engineering of East West University, Dhaka, Bangladesh. en_US
dc.description.abstract In this program or demo we have shown a n eating room considered as a critical section and a sofa of four sits infront of the eating room which is considered as a semaphore queue. Here we consider the processes as a man. When a man is hungry he comes in and performs the 'P' operation. If he is accepted then he goes in, checks the eating room if it is busy or not. If it is not busy then he goes in and eats his food. If it is busy then he waits on the sofa infront of the eating room. One important thing is when a man is accepted to go in he changes the value of the variable'S'. When there is no man either in the eating room or on the sofa then the value of s remains full. For example let us consider that there is no one and has the value 5. When a man comes he decreases the value of'S' and gets in and this process goes on. When the value of'S' is 0 then no one can enter. When the man in the eating room finishes his job or work he then comes out and performs the' V' operation. The 'V' operation is if there is any man waiting for the room let one of then proceed. At this time the values of'S' is incremented. That means there is an empty sit and any man who will come next can get in. If there is no man to come, then the man in the room will let another man proceed after he finishes his job and increments the value of'S' . en_US
dc.language.iso en_US en_US
dc.publisher East West University en_US
dc.relation.ispartofseries ;CSE00003(2)
dc.subject Smartphone, n process, critical section problem en_US
dc.title Operating System Semaphore Demo en_US
dc.type Thesis en_US


Files in this item

This item appears in the following Collection(s)

Show simple item record

Search DSpace


Browse

My Account