If a process is performing some write operation, then no other process should be allowed to perform the read or the write operation i.e.We can solve the above two problems by using the semaphore variable(learn more about semaphore from here). If a process is performing some read operation only, then another process that is demanding for reading operation should be allowed to read the file and get into the critical section because the read operation doesn't change anything in the file.no other process should be allowed to enter into the critical section(learn more about critical section from here). But if a process is reading a file and another process is demanding for the write operation, then it should not be allowed. Semaphore "writer": This semaphore is used to achieve the mutual exclusion property.The following semaphore variables will be used in our solution: So, we will use the above two concepts and solve the reader-writer problem with the help of semaphore variables. It is used by the process that is writing in the file and it ensures that no other process should enter the critical section at that instant of time. HOW TO USE A VIVITAR CARD READER WRITER SOFTWARE.HOW TO USE A VIVITAR CARD READER WRITER MANUAL.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |