cs-3013-assignment-3/main.h

19 lines
507 B
C

#ifndef MAIN_H
#define MAIN_H
// The max number of threads that can be used at once
#define MAXTHREAD 10
// The max size of the input buffer
#define BUFFER_SIZE 128
#define USAGE_STRING "./mailbox num_threads [nb]"
#define OUTPUT_FORMAT "The result from thread %d is %d from %d operations during %d secs.\n"
// input represents a pair of values inputted at the command line
struct input {
// The mailbox index of the recipient.
int recipient;
// The value to send to the mailbox.
int value;
};
#endif