{"id":24890790,"url":"https://github.com/webdevbysubha/os-lab","last_synced_at":"2025-03-27T12:45:06.448Z","repository":{"id":273568053,"uuid":"920151846","full_name":"webdevbysubha/OS-Lab","owner":"webdevbysubha","description":null,"archived":false,"fork":false,"pushed_at":"2025-01-21T17:00:13.000Z","size":14,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-01T17:17:47.104Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/webdevbysubha.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":"2025-01-21T16:47:47.000Z","updated_at":"2025-01-21T17:00:16.000Z","dependencies_parsed_at":"2025-01-21T17:51:32.607Z","dependency_job_id":null,"html_url":"https://github.com/webdevbysubha/OS-Lab","commit_stats":null,"previous_names":["webdevbysubha/os-lab"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webdevbysubha%2FOS-Lab","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webdevbysubha%2FOS-Lab/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webdevbysubha%2FOS-Lab/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webdevbysubha%2FOS-Lab/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/webdevbysubha","download_url":"https://codeload.github.com/webdevbysubha/OS-Lab/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245850257,"owners_count":20682636,"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":[],"created_at":"2025-02-01T17:17:49.771Z","updated_at":"2025-03-27T12:45:06.415Z","avatar_url":"https://github.com/webdevbysubha.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Operating System Lab Solutions 💻\n\nThis repository contains solutions to the **Operating System Lab** questions (Paper Code: `PCC-CS592`) for the 5th Semester of B.Tech (CSE) at RCCIIT. Each solution is organized question-wise into separate folders for easy navigation. 🚀\n\n---\n\n## 📂 Folder Structure\n```plaintext\n📦 Operating-System-Lab-Solutions\n├── Question 1\n│   ├── reverse_number.sh       # Shell script to find the reverse of a number\n│   └── fcfs.c                  # C program for FCFS Scheduling Algorithm\n├── Question 2\n│   ├── factorial.sh            # Shell script to find factorial of a number\n│   └── sjf.c                   # C program for SJF Scheduling Algorithm\n├── Question 3\n│   ├── is_prime.sh             # Shell script to check if a number is prime\n│   └── priority.c              # C program for Priority Scheduling Algorithm\n├── Question 4\n│   ├── odd_or_even.sh          # Shell script to check if a number is odd or even\n│   └── round_robin.c           # C program for Round Robin Scheduling Algorithm\n├── Question 5\n│   ├── leap_year.sh            # Shell script to determine if a year is a leap year\n│   └── fork_exec.c             # C program to demonstrate process creation using fork() and exec()\n├── Question 6\n│   ├── pipe_message.c          # C program for parent-to-child message passing using pipes\n│   └── ls_sort.c               # C program to implement `ls | sort`\n├── Question 7\n│   ├── thread_id.c             # C program to create threads and display thread/process IDs\n│   └── max_of_three.sh         # Shell script to find the maximum of three numbers\n├── Question 8\n│   └── semaphore_threads.c     # C program for simultaneous threads using semaphore\n├── Question 9\n│   └── producer_consumer.c     # C program to solve the Producer-Consumer problem using semaphore\n├── Question 10\n│   └── reader_writer.c         # C program to solve the Reader-Writer problem using semaphore\n├── Question 11\n│   ├── factorial_thread.c      # C program to calculate factorial and reverse using threads\n│   └── swap_numbers.sh         # Shell script to swap two numbers without using a third variable\n├── Question 12\n│   └── bankers_algorithm.c     # C program to implement the Banker’s Algorithm for deadlock avoidance\n```\n---\n\n## ⚙️ Prerequisites\n- **Linux/Unix Shell**: To execute shell scripts.\n- **C Compiler (GCC)**: To compile and run C programs.\n- **Basic Programming Knowledge**: Familiarity with C and shell scripting is recommended.\n\n---\n\n## 📖 Learnings\nThis repository offers practical exposure to:\n- Writing shell scripts for problem-solving.\n- Implementing process scheduling algorithms like FCFS, SJF, Priority, and Round Robin.\n- Working with inter-process communication techniques like pipes.\n- Creating and managing threads in C.\n- Using semaphores for synchronization in multithreading and solving classical problems like Producer-Consumer and Reader-Writer.\n- Understanding deadlock avoidance with Banker’s Algorithm.\n\n---\n\n## 🙌 Contributions\nContributions are always welcome!  \nIf you have suggestions, improvements, or additional solutions, feel free to:\n1. Fork this repository.\n2. Create a new branch for your changes.\n3. Submit a pull request with a brief description of the enhancement.\n\nLet’s grow and learn together! 🌱\n\n---\n\n✨ **Happy Coding!** 🚀\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwebdevbysubha%2Fos-lab","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwebdevbysubha%2Fos-lab","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwebdevbysubha%2Fos-lab/lists"}