Example #1
0
int main(void) {
    init_letter_count();
    // Setup the mapper pipes
    create_mapper_pipes();
    create_reducer_pipes();
    fork_reducers();
    fork_mappers();
    send_lines_to_mappers();

    return 0;
}
void create_pipes()
{
  create_mapper_pipes();
  create_reducer_pipes();
}