{"id":18480899,"url":"https://github.com/jastka4/meadow-simulation","last_synced_at":"2025-05-13T19:26:54.185Z","repository":{"id":139462534,"uuid":"190307277","full_name":"jastka4/meadow-simulation","owner":"jastka4","description":"Project for university. Multithreaded meadow simulation in C++. ","archived":false,"fork":false,"pushed_at":"2019-06-23T19:17:45.000Z","size":444,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-16T21:17:10.525Z","etag":null,"topics":["conditional-variables","cpp17","meadow","multithreading","pwr","simulation"],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jastka4.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","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}},"created_at":"2019-06-05T01:47:04.000Z","updated_at":"2023-07-26T16:23:38.000Z","dependencies_parsed_at":"2023-06-08T10:45:48.824Z","dependency_job_id":null,"html_url":"https://github.com/jastka4/meadow-simulation","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jastka4%2Fmeadow-simulation","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jastka4%2Fmeadow-simulation/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jastka4%2Fmeadow-simulation/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jastka4%2Fmeadow-simulation/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jastka4","download_url":"https://codeload.github.com/jastka4/meadow-simulation/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254011834,"owners_count":21999151,"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","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":["conditional-variables","cpp17","meadow","multithreading","pwr","simulation"],"created_at":"2024-11-06T12:20:58.788Z","updated_at":"2025-05-13T19:26:54.157Z","avatar_url":"https://github.com/jastka4.png","language":"C++","readme":"# Meadow simulation\nMultithreaded meadow simulation using C++17 and CLion IDE. The was project created for a university course on operating systems (Wrocław University of Science and Technology).\n\nIn this simulation there are animals that can eat, drink water and think. It is done in a loop until an animal is alive. Conditional variables were used to synchronize threads.\n\n**Threads**:\n- Cow (eats grass),\n- Rabbit (eats grass and can be eaten by a wolf),\n- Wolf (hunts only at night),\n- Sun (day and night cycle).\n\n**Resources**:\n- Pond (animals can drink water),\n- Rabbit Hole (rabbits try to escape there when hunted by a wolf),\n- Grass (eaten by cows and rabbits).\n\n## Images\nAn example of a simulation state at the beginning:\n![Beginning of the simulation](https://raw.githubusercontent.com/jastka4/meadow-simulation/assets/1.png)\n\nAn example of a simulation state at night:\n![Simulation at night](https://raw.githubusercontent.com/jastka4/meadow-simulation/assets/2.png)","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjastka4%2Fmeadow-simulation","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjastka4%2Fmeadow-simulation","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjastka4%2Fmeadow-simulation/lists"}