{"payload":{"feedbackUrl":"https://github.com/orgs/community/discussions/53140","repo":{"id":744506371,"defaultBranch":"main","name":"Operating-System","ownerLogin":"SophiaRazzaq","currentUserCanPush":false,"isFork":false,"isEmpty":false,"createdAt":"2024-01-17T12:48:04.000Z","ownerAvatar":"https://github.com/avatars/u/113778979?v=4","public":true,"private":false,"isOrgOwned":false},"refInfo":{"name":"","listCacheKey":"v0:1705496461.0","currentOid":""},"activityList":{"items":[{"before":"4f64d49c489647756adb0e4da6791aaf67ac1522","after":"1e0c1513cd56956267a5059c4b42596ebc29c14d","ref":"refs/heads/main","pushedAt":"2024-01-17T13:10:20.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"SophiaRazzaq","name":"Sophia","path":"/SophiaRazzaq","primaryAvatarUrl":"https://github.com/avatars/u/113778979?s=80&v=4"},"commit":{"message":"README.md","shortMessageHtmlLink":"README.md"}},{"before":"65027fac655854346fe0fd05681650a81add62c1","after":"4f64d49c489647756adb0e4da6791aaf67ac1522","ref":"refs/heads/main","pushedAt":"2024-01-17T13:01:01.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"SophiaRazzaq","name":"Sophia","path":"/SophiaRazzaq","primaryAvatarUrl":"https://github.com/avatars/u/113778979?s=80&v=4"},"commit":{"message":"Add files via upload","shortMessageHtmlLink":"Add files via upload"}},{"before":"cc8525439d26955088174ccc7c32e60fc7560492","after":"65027fac655854346fe0fd05681650a81add62c1","ref":"refs/heads/main","pushedAt":"2024-01-17T12:56:48.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"SophiaRazzaq","name":"Sophia","path":"/SophiaRazzaq","primaryAvatarUrl":"https://github.com/avatars/u/113778979?s=80&v=4"},"commit":{"message":"synchronous multi-threaded application.c","shortMessageHtmlLink":"synchronous multi-threaded application.c"}},{"before":"5967d93d3c0edb6bf6d309c80f89461b777d916c","after":"cc8525439d26955088174ccc7c32e60fc7560492","ref":"refs/heads/main","pushedAt":"2024-01-17T12:56:14.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"SophiaRazzaq","name":"Sophia","path":"/SophiaRazzaq","primaryAvatarUrl":"https://github.com/avatars/u/113778979?s=80&v=4"},"commit":{"message":"synchronous multi-threading.c\n\nDesign a synchronous multi-threaded application for the following\r\ntasks to be executed in an order.\r\n• Write a program which takes some positive integer (let’s\r\nsay N) as command line argument\r\n• It creates a thread, and send N to it as parameter.\r\n• This thread is a fibonacciGenerator. The function\r\nreturns the generated Fibonacci series until N to the\r\n\r\nmain thread, which prints in on the screen along with\r\nthe thread ID.\r\n• This series is to be passed to another thread by the main thread.\r\n• This new worker has to count the number of even\r\nnumbers and return the count to main thread,\r\nwhich prints it along with the 2 nd thread’s id.\r\n• Then the series is to be passed to a third thread by the main\r\nthread.\r\n• This new worker has to count the number of odd\r\nnumbers and return the count to main thread,\r\nwhich prints it along with the 3 rd thread’s id.\r\n• Finally the sum of this series is calculated by a fourth\r\nthread and written to a file named sum.txt. This thread\r\nalso returns the sum value to the main thread where it is\r\nprinted along with the thread ID.\r\n• Also, create a suitable MAKEFILE for the execution of this program.\r\nFor Example:\r\nN = 8\r\nOutput:\r\nID = 40, Series: 0 1 1 2 3 5 8 13\r\nID = 41, Even Numbers: 2\r\nID = 42, Odd Numbers: 5\r\nID = 43, Sum: 228","shortMessageHtmlLink":"synchronous multi-threading.c"}},{"before":"d15f2bf9419eb7a30e433d3994f6be518e87eb71","after":"5967d93d3c0edb6bf6d309c80f89461b777d916c","ref":"refs/heads/main","pushedAt":"2024-01-17T12:54:10.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"SophiaRazzaq","name":"Sophia","path":"/SophiaRazzaq","primaryAvatarUrl":"https://github.com/avatars/u/113778979?s=80&v=4"},"commit":{"message":"Create Memory Mapping2.c\n\na C/C++ program that accepts a file name as a command line argument and\r\ncreates a memory map of the file. The program should then use two threads to replace all\r\nintegers in the file with spaces. The first thread will be responsible for replacing integers in the\r\nfirst half of the map, while the second thread will replace integers in the second half of the map.\r\nThe file is assumed to have 100 bytes. To accomplish this, pass the map pointer to the first thread\r\nas a parameter and add 50 to the map pointer and pass it as a parameter to the second thread.\r\n\r\nSample Data for File:\r\nv1gU6OTgN7DMifG7zmQWp04ZEyGmRifq1uFsS9RzZWcCQL7jBMNKUQVEAIsKZia4\r\n0M3TqJeGEMEkkSagfUc7mU3PbQ1zsiJm23Hq","shortMessageHtmlLink":"Create Memory Mapping2.c"}},{"before":"abde2447359c965cc3449adf4f588fdf87ab7f83","after":"d15f2bf9419eb7a30e433d3994f6be518e87eb71","ref":"refs/heads/main","pushedAt":"2024-01-17T12:53:21.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"SophiaRazzaq","name":"Sophia","path":"/SophiaRazzaq","primaryAvatarUrl":"https://github.com/avatars/u/113778979?s=80&v=4"},"commit":{"message":"Memory Mapping.cpp\n\nWrite a C/C++ program that accepts a file name as a command line argument and\r\nmaps the contents of the file into memory. The program should then search for a specified word\r\nin the file and replace it with another word. The program should use memory mapping for\r\n\r\nefficient access to the file's contents.\r\nThe program should be able to handle large files, and should avoid reading the entire file into\r\nmemory at once.\r\nFunction signature:\r\nvoid replaceWordInFile(const char *fileName, const char *wordToReplace, const char\r\n*replacementWord);\r\nExample:\r\nreplaceWordInFile(\"file.txt\", \"hello\", \"goodbye\");\r\nThis call should replace all occurrences of the word \"hello\" with the word \"goodbye\" in the file\r\n\"file.txt\".","shortMessageHtmlLink":"Memory Mapping.cpp"}},{"before":"451b0257c768df2d537b8890e18d84a32550d260","after":"abde2447359c965cc3449adf4f588fdf87ab7f83","ref":"refs/heads/main","pushedAt":"2024-01-17T12:52:00.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"SophiaRazzaq","name":"Sophia","path":"/SophiaRazzaq","primaryAvatarUrl":"https://github.com/avatars/u/113778979?s=80&v=4"},"commit":{"message":"Create Signals.c","shortMessageHtmlLink":"Create Signals.c"}},{"before":"7c9dbb3db4a50188003776fb50ddd3784c35d2ec","after":"451b0257c768df2d537b8890e18d84a32550d260","ref":"refs/heads/main","pushedAt":"2024-01-17T12:51:15.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"SophiaRazzaq","name":"Sophia","path":"/SophiaRazzaq","primaryAvatarUrl":"https://github.com/avatars/u/113778979?s=80&v=4"},"commit":{"message":"IO REDIRECTION using filing.c","shortMessageHtmlLink":"IO REDIRECTION using filing.c"}},{"before":"ee277f33c1d13046ba2d3ee57234b925f116e740","after":"7c9dbb3db4a50188003776fb50ddd3784c35d2ec","ref":"refs/heads/main","pushedAt":"2024-01-17T12:48:54.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"SophiaRazzaq","name":"Sophia","path":"/SophiaRazzaq","primaryAvatarUrl":"https://github.com/avatars/u/113778979?s=80&v=4"},"commit":{"message":"Shell.c\n\nC language","shortMessageHtmlLink":"Shell.c"}},{"before":null,"after":"ee277f33c1d13046ba2d3ee57234b925f116e740","ref":"refs/heads/main","pushedAt":"2024-01-17T12:48:05.000Z","pushType":"branch_creation","commitsCount":0,"pusher":{"login":"SophiaRazzaq","name":"Sophia","path":"/SophiaRazzaq","primaryAvatarUrl":"https://github.com/avatars/u/113778979?s=80&v=4"},"commit":{"message":"Initial commit","shortMessageHtmlLink":"Initial commit"}}],"hasNextPage":false,"hasPreviousPage":false,"activityType":"all","actor":null,"timePeriod":"all","sort":"DESC","perPage":30,"cursor":"djE6ks8AAAAD4gaRRwA","startCursor":null,"endCursor":null}},"title":"Activity · SophiaRazzaq/Operating-System"}