#include “proj1.h”
void generate_input(int*arr, int ninput){
srand(time(NULL));
Copyright By PowCoder代写 加微信 powcoder
int result = 0;
int cnt =0;
while(cnt < ninput){
result = rand()%BILLION;
arr[cnt]=result;
void *sets_shared_memory(){ // FIX ME!
void *ret = NULL;
return ret;
int child_find_min_value(int id, int *arr, int chunk){ // FIX ME
int min = BILLION;
return min;
void put_value(int *arr, int n_input, int id, int min){ // FIX ME
int parent_find_min_value(void *arr,int n_input, int n_process){ // FIX ME
int min = BILLION;
return min;
程序代写 CS代考 加微信: powcoder QQ: 1823890830 Email: powcoder@163.com