C代写|C语言代写|C++代写|多线程代写|multithread代写- System Programming2
C代写|C语言代写|C++代写|多线程代写|multithread代写:这是一个利用C语言并行处理ppm文件的问题,是一个训练I/O操作的代写
Rewrite your solution to Assignment 2 with changed requirements on parallel execution.
Requirement from previous assignment:
• The parent process waits for the child process to terminate before creating the next.
Replacement:
• The parent process will not wait for the child process to terminate before creating the
next process.
• The processes will do the calculation in parallel. Add some sleep time to simulate larger
calculation.
• The processes will write the data into the image file sequentially. This is coordinated by
the parent using signals.
• You can only use signal for inter-process communication.
Marking Scheme:
0.5 logically clear
0.5 follow all instructions and correctly use signals
0.5 successfully compile
0.5 pass all tests