{"id":23152655,"url":"https://github.com/albinzayedrawan/os-c-scripts","last_synced_at":"2025-04-04T15:41:09.057Z","repository":{"id":262664141,"uuid":"887911997","full_name":"albinzayedrawan/OS-C-Scripts","owner":"albinzayedrawan","description":"This project is designed to implement multiple C scripts within a virtualized operating system environment. The tasks focus on input/output operations, process management, client-server communication, and multi-threading with synchronization.","archived":false,"fork":false,"pushed_at":"2024-11-14T19:15:07.000Z","size":7,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-10T01:30:03.242Z","etag":null,"topics":["c-scripts","client-server-communication","multithreading","operating-system","process-management"],"latest_commit_sha":null,"homepage":"","language":"C","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/albinzayedrawan.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}},"created_at":"2024-11-13T13:53:16.000Z","updated_at":"2024-11-14T19:15:11.000Z","dependencies_parsed_at":"2024-11-13T16:41:24.097Z","dependency_job_id":"06982edc-3649-42b7-9f8f-b3ed24c64124","html_url":"https://github.com/albinzayedrawan/OS-C-Scripts","commit_stats":null,"previous_names":["albinzayedrawan/os-c-scripts"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/albinzayedrawan%2FOS-C-Scripts","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/albinzayedrawan%2FOS-C-Scripts/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/albinzayedrawan%2FOS-C-Scripts/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/albinzayedrawan%2FOS-C-Scripts/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/albinzayedrawan","download_url":"https://codeload.github.com/albinzayedrawan/OS-C-Scripts/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247207251,"owners_count":20901565,"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":["c-scripts","client-server-communication","multithreading","operating-system","process-management"],"created_at":"2024-12-17T19:17:14.593Z","updated_at":"2025-04-04T15:41:09.028Z","avatar_url":"https://github.com/albinzayedrawan.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Virtualized Operating System Project\n\n## Overview\nThis project is designed to implement multiple C scripts within a virtualized operating system environment. The tasks focus on input/output operations, process management, client-server communication, and multi-threading with synchronization.\n\n## Project Tasks\n\n### Task 1: Standard Input/Output Script\n1. Create a script using C that:\n   - Reads any data from the standard input device.\n   - Writes the data to the screen.\n   - Handles data of any length.\n\n### Task 2: Date and Time Script\n2. Create a script using C that:\n   - Prints the day of the week.\n   - Creates a forked process to print the current date.\n\n### Task 3: Client-Server Communication\n3. Create three C scripts:\n   - **Script A (Server)**\n     - Prints the messages received from Scripts B \u0026 C.\n     - Replies to the messages received from Script B or C.\n   - **Script B (Client)**\n     - Sends the message \"This is Client B\" to the server.\n     - Prints the reply received from Script A.\n   - **Script C (Client)**\n     - Sends the message \"I am Client C\" to the server.\n     - Prints the reply received from Script A.\n\n### Task 4: Multi-Threading with Synchronization\n4. Create a script using C that:\n   - Creates two threads (Thread A and Thread B).\n   - Ensures the threads alternate using a Mutex lock to achieve synchronized output.\n   - The output sequence should follow:\n     ```\n     1 ➔ 2 ➔ 2 ➔ 4 ➔ 3 ➔ 6 ➔ 4 ➔ 8 ➔ 5 ➔ 10 ➔ 6 ➔ 12 ➔ 7 ➔ 14\n     ```\n     - Thread A prints numbers from 1 to 7.\n     - Thread B prints even numbers from 2 to 14.\n\n---\n\n## Requirements\n- Virtualized Operating System environment.\n- GCC compiler for C language.\n- Mutex library for thread synchronization.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falbinzayedrawan%2Fos-c-scripts","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falbinzayedrawan%2Fos-c-scripts","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falbinzayedrawan%2Fos-c-scripts/lists"}