{"id":19772936,"url":"https://github.com/nevilparmar11/operating_system_lab_tasks","last_synced_at":"2026-06-11T19:31:30.185Z","repository":{"id":123989620,"uuid":"323955924","full_name":"nevilparmar11/Operating_System_Lab_Tasks","owner":"nevilparmar11","description":"Operating System subject lab tasks sem 5. ","archived":false,"fork":false,"pushed_at":"2020-12-23T18:10:20.000Z","size":21456,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-02-28T11:44:53.299Z","etag":null,"topics":["c","course","lab","operating-system"],"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/nevilparmar11.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":"2020-12-23T16:53:06.000Z","updated_at":"2020-12-23T19:39:59.000Z","dependencies_parsed_at":null,"dependency_job_id":"f43da670-b95a-47f1-8c0b-3530d39bb986","html_url":"https://github.com/nevilparmar11/Operating_System_Lab_Tasks","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/nevilparmar11/Operating_System_Lab_Tasks","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nevilparmar11%2FOperating_System_Lab_Tasks","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nevilparmar11%2FOperating_System_Lab_Tasks/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nevilparmar11%2FOperating_System_Lab_Tasks/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nevilparmar11%2FOperating_System_Lab_Tasks/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nevilparmar11","download_url":"https://codeload.github.com/nevilparmar11/Operating_System_Lab_Tasks/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nevilparmar11%2FOperating_System_Lab_Tasks/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34215253,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-11T02:00:06.485Z","response_time":57,"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":["c","course","lab","operating-system"],"created_at":"2024-11-12T05:08:07.286Z","updated_at":"2026-06-11T19:31:30.146Z","avatar_url":"https://github.com/nevilparmar11.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Operating_System_Lab_Tasks\nOperating System subject lab tasks sem 5. \n\n## Lab 1\n- Implementation of “cat” and “cp” command in C. (use of open, read, write, and close system calls)\n\n## Lab 2\n- Implementation of “pwd” and “ls” command in C. (use of getcwd, opendir, readdir, closedir)\n\n## Lab 3\n- Process Creation and Termination (Use of fork, wait, getpid, and getppid system calls).\n1. Call fork once, twice, thrice and print “Hello”. Observe and interpret the outcomes.\n2. Print PID and PPID for parent and child processes. Observe and interpret the outcomes.\n\n## Lab 4\n1. Write a program to print process id and process name of all the current\n  processes in the system.\n- Extend the above program to read and display other fields from the stat file.\n\n## Lab 5\n- Thread creation and Termination. Synchronization using mutex\nlock and unlock. (Use of pthread_create, ptread_join, pthread_mutex_lock\nand pthread_mutex_unlock library functions of Pthread library).\n1. Write a program to create a thread using pthread_create.\n2. Write a program to pass a character string to the threaded function.\n3. Write a program to implement a simple calculator using threads.\n4. Write a program to multiply two matrices.\n\n## Lab 6\n- Inter process communication ( Use of pipe system call and mkfifo )\n1. Write a program to create a pipe and print the values of pipe file descriptors.\n2. Write a program to pass a message from parent process to child process\nthrough a pipe.\n3. Write a program to pass file name from parent process to child process through\na pipe, child process should pass the file contents to parent process and parent\nshould print the contents\n4. Demonstrate the use of named pipe with appropriate programs and commands.\n\n## Lab 7\n1. Write a program to implement ls | sort functionality using the system calls and\nfunctions covered in the lab.\n2. Write a program to achieve following:\n- Child process should open a file with the contents to be sorted, pass the\ncontents to the parent process.\n- Parent process should sort the contents of the file and display.\n3. Execv function demo program\n\n## Lab 8\n1. Implement the linux shell in C.\n- [Linux Shell In C](https://gist.github.com/nevilparmar11/6c617636944a7cdb1774ed87343624ef)\n\n## Lab 9\n1. Write a program to implement a solution of bounded buffer producer consumer\nproblem using semaphores.\n\n## Lab 10\n1. Reader Writers problem ( Readers have priority).\n2. Reader Writers problem ( Writers have priority ).\n\n## Lab 11\n1. Sleeping Barber Problem\n2. Dining Philosopher Problem\n\n## Lab 12\n1. Banker's Algorithm\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnevilparmar11%2Foperating_system_lab_tasks","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnevilparmar11%2Foperating_system_lab_tasks","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnevilparmar11%2Foperating_system_lab_tasks/lists"}