CS代写 #include “proj1.h”

#include “proj1.h”

void signal_handler(){

Copyright By PowCoder代写 加微信 powcoder

int main(int argc, char**argv){
// 1. Set the number of input and process using arguments.

// 2. Fill the sets_shared memory function in proj1.c file

// 3. Block the SIGCONT signal

//void *arr= sets_shared_memory();
//generate_input((int *)arr,n_input);

// 4-1. Create child processes
// 4-2. Unblock the SIGCONT signal
// 4-3 and pause them.
// 5. Childs: After resuming, find the minimum value from their chunk.
// 6. Childs: After finding the minimum value, store it to the share memory spaces.
// Dest : arr + (size of int * number of input + child process index)
//for(i=0; iCS代考 加微信: powcoder QQ: 1823890830 Email: powcoder@163.com