Question: In C language 5. Create a program that creates 4 threads where each thread prints out its thread ld Recall the D2L discussions advise If
In C language 
5. Create a program that creates 4 threads where each thread prints out its thread ld Recall the D2L discussions advise If you have a runaway process you can use to get a list of your running processes ps-ef I grep USER Then type kill -9 pid, where pid is the process you want to kill. 6. Seeker Note: this problem is artificial to provide an opportunity to write a multithreaded program. DON'T do this until you've solved problem 5! Consider a vision monitoring system that receives input in the form of rows and columns. A row and column position is marked with a 1 to indicate there is something at that position. Your task is to write a multithreaded program that finds how many row/column positions there are where there are at least 20 consecutive markers (in a row or a column) for an image of 8000x8000 pixels. a) Write a program that uses a single process to check all the pixels in a randomly generated image b) Write a program that creates 4 (and only 4!) threads that divide the work. You may find using the unix program time of interest (note the user time and sys time are provided separately). From the shell prompt type the command: time ./seeker). Also perhaps of greater utility, due to the snow closure, part a is already done for you! (you'll find it in the handouts folder, alas without comments...). Actually, this code isn't efficient, isn't quite right, and hasn't been seriously tested, but consider it good enough for our purposes (working with threads) During development, you should consider modifying the constants to smaller values to accelerate development
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
