{"push_id":2843140310,"size":1,"distinct_size":1,"ref":"refs/heads/master","head":"dcc0da63ade7e4c087c1846299cea75979fdb7c4","before":"dbc4e5645bc3c37b07d69588c9325ad1e20edccd","commits":[{"sha":"dcc0da63ade7e4c087c1846299cea75979fdb7c4","author":{"name":"Nikolay","email":"b918eafbf69be105abeaf0256cb5f5ade8008fbc@mail.ru"},"message":"Add files via upload\n\nThe main thread should perform the following actions:\r\n1. Create an array whose dimensions and elements are entered by the user from the console. Elements of the array are integers;\r\n2. Display the dimension and elements of the source array on the console;\r\n3. Enter the number k;\r\n4. Start the thread MyThread_Work;\r\n5. Start the thread MyThread_SumElement;\r\n6. Release the output stream stdout after outputting each new element of the array to the console.\r\n7. Display element elements of the array (summary) element-by-element in parallel with the work of the MyThread_Work stream;\r\n8. Notify the MyThread_SumElement thread of the beginning of the summation (the start time will occur after k elements are displayed on the console).\r\n\r\nThe MyThread_Work stream should perform the following actions (To use synchronization with the main thread, use a semaphore).\r\n1. Ask the user for the time interval required for rest after preparing one element in the array;\r\n2. Sort by the \"bubble\" method.\r\n3. Notify the main thread about the new element;\r\n4. After each finished item, rest for a predetermined time interval;\r\n\r\nThe thread MyThread_SumElement should perform the following actions (To synchronize with the main thread use a semaphore):\r\n1. The signal about the beginning of the summation waits from the main stream;\r\n2. Summarize the elements of the resulting array to the specified position k;\r\n3. Print the total amount.","distinct":true,"url":"https://api.github.com/repos/nickky2010/system-programming/commits/dcc0da63ade7e4c087c1846299cea75979fdb7c4"}]}
{"actor":{"display_login":"nickky2010"}}