{"id":24482836,"url":"https://github.com/yantavares/scheduler-so","last_synced_at":"2026-02-26T02:39:34.796Z","repository":{"id":272592211,"uuid":"910930999","full_name":"yantavares/scheduler-so","owner":"yantavares","description":"Scheduler that manages processes in a Unix environment using the Round Robin policy with fixed priorities.","archived":false,"fork":false,"pushed_at":"2025-02-14T03:29:37.000Z","size":314,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-12-02T02:32:39.529Z","etag":null,"topics":["round-robin","scheduler","unix"],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/yantavares.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2025-01-01T20:28:59.000Z","updated_at":"2025-02-17T19:29:59.000Z","dependencies_parsed_at":"2025-05-07T14:14:11.947Z","dependency_job_id":"6a1257ae-f301-4964-b651-327c393657bd","html_url":"https://github.com/yantavares/scheduler-so","commit_stats":null,"previous_names":["yantavares/scheduler-so"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/yantavares/scheduler-so","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yantavares%2Fscheduler-so","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yantavares%2Fscheduler-so/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yantavares%2Fscheduler-so/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yantavares%2Fscheduler-so/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yantavares","download_url":"https://codeload.github.com/yantavares/scheduler-so/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yantavares%2Fscheduler-so/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29848634,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-25T22:37:40.667Z","status":"online","status_checked_at":"2026-02-26T02:00:06.774Z","response_time":89,"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":["round-robin","scheduler","unix"],"created_at":"2025-01-21T12:15:39.432Z","updated_at":"2026-02-26T02:39:34.779Z","avatar_url":"https://github.com/yantavares.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Unix Static Priority Multicore Scheduler\n\n:brazil: **PT/BR** - [README_ptbr.md](README_ptbr.md)\n\n[![GitHub stars](https://img.shields.io/github/stars/yantavares/scheduler-so)](https://github.com/yantavares/scheduler-so)\n[![License: GPLv3](https://img.shields.io/badge/License-MIT-blue.svg)](https://opensource.org/licenses/MIT)\n\n```\n                            _____  .__ ___.\n  __________               /  _  \\ |  |\\_ |__ _____\n /  ___/  _ \\    ______   /  /_\\  \\|  | | __ \\\\__  \\\n \\___ (  \u003c_\u003e )  /_____/  /    |    \\  |_| \\_\\ \\/ __ \\_\n/____  \u003e____/            \\____|__  /____/___  (____  /\n     \\/                          \\/         \\/     \\/\n\n```\n\n**Note:** If this repository helped you, please leave a :star: on the repo :)\n\nThis program implements a scheduler that manages processes in a Unix environment using the Round Robin policy with up to 4 priority queues (0, 1, 2, 3) and a specific quantum. It simulates a multicore environment, scheduling processes based on their priorities and start times.\n\n---\n\n## Compilation\n\n### Option 1: Using the Makefile\n\n```bash\nmake\n```\n\nThis will compile the program and generate the `escalona` executable, along with compiling all test processes in the `process` directory.\n\n### Option 2: Manual Compilation\n\n```bash\ngcc -o escalona scheduler.c -lpthread\n```\n\n## Execution\n\n```bash\n./escalona \u003cnumber_of_cores\u003e \u003cquantum\u003e \u003cinput_file\u003e\n```\n\nExample:\n\n```bash\n./escalona 4 2 input.txt\n```\n\nTwo test input files are already available in the scheduler's directory.\n\n### **Input File Format:**\n\nThe input file must follow the format:\n\n```\n\u003cid\u003e \u003cexecutable\u003e \u003cstart_time\u003e \u003cpriority\u003e\n```\n\nExample:\n\n```\n1 test20 0 2\n2 test10 0 0\n3 test30 20 0\n4 test10 15 1\n```\n\n---\n\n## Features\n\n- Manages processes in 4 priority queues.\n- Supports round-robin for each queue.\n- Uses semaphores to manage core access.\n- Monitors processes via pipes for interprocess communication.\n- Generates a final report with turnaround time and execution details for each process.\n\n---\n\n### Final Report\n\nThe program outputs:\n\n- Execution order of the processes.\n- Turnaround time for each process.\n- Average turnaround time.\n\n---\n\n## Notes\n\n- The functionality for multiple cores is not yet implemented. The scheduling logic is in place, but parallel execution is still under development. (Work in progress)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyantavares%2Fscheduler-so","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyantavares%2Fscheduler-so","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyantavares%2Fscheduler-so/lists"}