{"id":23657551,"url":"https://github.com/theoliverlear/producer-consumer-simulator","last_synced_at":"2025-08-05T15:38:22.092Z","repository":{"id":265793587,"uuid":"896611560","full_name":"theoliverlear/Producer-Consumer-Simulator","owner":"theoliverlear","description":"The final project for CIDS 429 which simulates user-defined scenarios with an operating system managing a buffer with consumers and producers.","archived":false,"fork":false,"pushed_at":"2024-12-16T04:20:02.000Z","size":217,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-05-20T10:11:25.793Z","etag":null,"topics":["command-line","concurrency","educational","operating-systems","python","statistics","threading"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/theoliverlear.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2024-11-30T20:34:54.000Z","updated_at":"2024-12-16T04:20:06.000Z","dependencies_parsed_at":"2024-12-16T02:28:04.495Z","dependency_job_id":"0594a81c-5696-415e-8c97-a5ccf3875bbe","html_url":"https://github.com/theoliverlear/Producer-Consumer-Simulator","commit_stats":null,"previous_names":["theoliverlear/producer-consumer-simulator"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/theoliverlear/Producer-Consumer-Simulator","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/theoliverlear%2FProducer-Consumer-Simulator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/theoliverlear%2FProducer-Consumer-Simulator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/theoliverlear%2FProducer-Consumer-Simulator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/theoliverlear%2FProducer-Consumer-Simulator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/theoliverlear","download_url":"https://codeload.github.com/theoliverlear/Producer-Consumer-Simulator/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/theoliverlear%2FProducer-Consumer-Simulator/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":268925503,"owners_count":24330141,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-05T02:00:12.334Z","response_time":2576,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["command-line","concurrency","educational","operating-systems","python","statistics","threading"],"created_at":"2024-12-28T21:55:04.064Z","updated_at":"2025-08-05T15:38:22.044Z","avatar_url":"https://github.com/theoliverlear.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Producer Consumer Simulator 📟\nWelcome to Producer Consumer Simulator! This repository serves as a tool to explore and learn critical operating systems concepts like producer-consumer balancing, buffer utilization, and concurrency. Designed with Python, this simulator is both intuitive and powerful, offering features to manipulate configurations, analyze performance, and refine your understanding of system behavior. 🌟\n\n## CIDS 429 - Operating Systems\n### Final Project\n#### By Oliver Sigwarth, Anthany Toum, Kollin Weikel, and Milton Massaquoi\n\n---\n\n## 📖 Overview \nThe Producer Consumer Simulator is an educational tool crafted to provide hands-on experience with essential operating systems concepts. From efficiency metrics to real-time execution tracing and intelligent configuration suggestions, this Python-based project has everything you need to learn and experiment with producer-consumer dynamics in a controlled environment.\n\n## 🛠️ Key Features\n- Command-Line Configuration: Easily set up your simulation with arguments like buffer size, number of producers/consumers, and processing speeds.\nExample: \n```bash\n  python pc_simulator.py -b 100 -n 100 -p 2 -c 3 -ps 1:5 -cs 2:4 -v\n```\n- Efficiency Calculator: Measure and rank your configuration's throughput to identify bottlenecks and optimize performance.\n- Execution Tracing: Trace producer and consumer activities with detailed logs showing idle times, buffer utilization, and bottlenecks.\n- Verbose Mode: Enable detailed output for an in-depth look at your simulation's behavior.\n- Smart Suggestions: Receive configuration suggestions to balance producer and consumer workloads and enhance performance.\n- Unit Testing: Ensures accuracy and reliability of the simulator’s operations.\n  \n## ⚙️ Installation\n1. Clone Repository:\n```bash\n   git clone https://github.com/theoliverlear/Producer-Consumer-Simulator.git\n   ```\n2. Change Directory:\n   cd producer-consumer-simulator \n\n## 📋 Usage\n### Running the Simulator \n1. Configure the simulation via command line. For example:\n   ``` bash\n   python pc_simulator.py -b 100 -n 100 -p 2 -c 3 -ps 1:5 -cs 2:4 -v\n    ```\n2. View real-rime logging, efficiency metrics, and suggestions directly in terminal.\n\n## 🔍 Features in Detail\n### Efficiency Calculator \n- Provides throughput metrics: Throughput = Total Items/Total Time Taken\n- Ranks your configuration's performance using percentiles.\n\n### Execution Tracing \n- Tracks thread activity: idle states, buffer utilization, and bottlenecks.\n- Provides insights into thread scheduling and queue saturation.\n\n### Configuration Suggestions\n- Suggests improvements based on the buffer size, thread count, and speed mismatches.\n\n### Unit Testing \n- Guarantees program reliability through comprehensive test cases.\n\n## 🧰 Development\n### Dependencies \n- Python\n- Logging for detailed execution tracing\n- Unit testing framework (ex: unittest)\n\n## 🌟 Contributions\nWe welcome contributions! Follow these steps:\n1. Fork the repository.\n2. Create a new branch.\n3. Make your changes and commit them.\n4. Push to your fork.\n5. Submit a pull request.\n\n## 🙌 Acknowledgments\nThank you for using the Producer Consumer Simulator! We hope it enhances your learning experience and provides valuable insights into operating systems concepts. 🚀✨\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftheoliverlear%2Fproducer-consumer-simulator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftheoliverlear%2Fproducer-consumer-simulator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftheoliverlear%2Fproducer-consumer-simulator/lists"}