|
|
1.1 ! root 1: Sample: Distributed Bounded Buffer Solution (DBBS) ! 2: ! 3: ! 4: ! 5: Summary: ! 6: ! 7: The DBBS sample demonstrates the distributed version of the classical ! 8: Operating Systems producer-consumer problem. A centralized buffer ! 9: pool managed by the RPC server is used by the producers and consumers. ! 10: Counting semaphores are used to make sure that comsumptions take place ! 11: when there is at least one unconsumed string in the buffer pool and ! 12: productions take place when there is at least one empty slot in the ! 13: buffer pool. Synchronization to the shared buffer pool is coordinated ! 14: by means of a mutex. ! 15: ! 16: ! 17: ! 18: More Information: ! 19: ! 20: To use this program, the RPC locator service must be first started ! 21: using the following command line: ! 22: ! 23: start locator /noservice ! 24: ! 25: Next, start the application server by typing: ! 26: ! 27: start bndbufs ! 28: ! 29: Multiple clients could then be started by typing: ! 30: ! 31: start bndbufc ! 32: ! 33: for each client to be started. ! 34: ! 35: The application uses while loops to run forever. Therefore, you need ! 36: to use ctrl-C to terminate each component.
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.