{"id":16782194,"url":"https://github.com/abhinav-26/os-assignment","last_synced_at":"2025-03-16T21:21:58.038Z","repository":{"id":158389507,"uuid":"250990098","full_name":"Abhinav-26/OS-Assignment","owner":"Abhinav-26","description":"It is my Operating System Assesment.","archived":false,"fork":false,"pushed_at":"2020-04-16T08:37:59.000Z","size":31,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-23T07:45:52.100Z","etag":null,"topics":["c","c-language","inter-communication","multithreading","operating-system","os","os-assignment","pipes","threading"],"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/Abhinav-26.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-03-29T08:53:32.000Z","updated_at":"2020-04-16T08:38:00.000Z","dependencies_parsed_at":null,"dependency_job_id":"fe90de69-1fb1-419a-a1ec-7a86c19724ac","html_url":"https://github.com/Abhinav-26/OS-Assignment","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/Abhinav-26%2FOS-Assignment","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Abhinav-26%2FOS-Assignment/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Abhinav-26%2FOS-Assignment/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Abhinav-26%2FOS-Assignment/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Abhinav-26","download_url":"https://codeload.github.com/Abhinav-26/OS-Assignment/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243933449,"owners_count":20370989,"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","c-language","inter-communication","multithreading","operating-system","os","os-assignment","pipes","threading"],"created_at":"2024-10-13T07:44:39.843Z","updated_at":"2025-03-16T21:21:58.009Z","avatar_url":"https://github.com/Abhinav-26.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# OS Assignment\nIt is my Operating System Assignment. In this Assesment we were given two different questions on different topics and we need to solve those problems by using our Programming Knowledge. I used C Language to solve these problems. \n\nMy problems were on Multi Threading and Pipes.\n\n# Problems \n\nQuestion-2 ::\n\nWrite a multithreaded program that calculates various statistical values for a list of numbers. This program will be \npassed a series of numbers on the command line and will then create three separate worker threads. One thread will \ndetermine the average of the numbers, the second will determine the maximum value, and the third will determine the \nminimum value. For example, suppose your program is passed the integers\n90 81 78 95 79 72 85\n\nThe program will report- \nThe average value is 82; \nThe minimum value is 72; \nThe maximum value is 95;\n\nThe variables representing the average, minimum, and maximum values will be stored globally. The worker threads will set \nthese values, and the parent thread will output the values once the workers have exited.\n\nQuestion-25 ::\n\nDesign a program using concepts of inter-process communication ordinary pipes in which one process sends a string \nmessage to a second process, and the second process reverses the case of each character in the message and sends it \nback to the first process. For example, if the first process sends the message Hi There, the second process will \nreturn hI tHERE. This will require using two pipes, one for sending the original message from the first to the second \nprocess and the other for sending the modified message from the second to the first process. You can write this program \nusing either UNIX or Windows pipes.\n\n# How to Run ?\nFor Question-2 : Write this command in terminal \n\nFor Compliling code------------:gcc -o Multithread Ques-2_Multitread.c -lpthread                                                               \nAfter Successful Compilation---:./Multithread\n \nFor Question-25 : Write this command in terminal\n\nFor Compilation of code--------:gcc -o InterProcessCom Ques-25_InterProcessCom_Pipes.c                                               \nAfter Successful Compilation---:./InterProcessCom\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fabhinav-26%2Fos-assignment","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fabhinav-26%2Fos-assignment","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fabhinav-26%2Fos-assignment/lists"}