/*************************************************************** File: pool_tasks.h Description: A program that implements a pool of tasks model for encrypting a text. Author: Dana Vrajitoru Organization: IUSB, Computer and Information Sciences Date: October 2020 ****************************************************************/ #ifndef POOL_TASKS_H #define POOL_TASKS_H const int WORD_LEN = 50; // Master process. Inputs the text, and sends it to other processes, // receives the results, and outputs them. void Master(int nr_proc); // Worker process. Receives a word from the master process, encrypts // it, then sends it back to the master. void Worker(int my_id, int nr_proc); #endif