cs-3013-assignment-3/main.h

19 lines
507 B
C
Raw Permalink Normal View History

2019-09-22 01:30:07 +00:00
#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
2019-09-22 01:36:38 +00:00
#define USAGE_STRING "./mailbox num_threads [nb]"
2019-09-23 20:37:04 +00:00
#define OUTPUT_FORMAT "The result from thread %d is %d from %d operations during %d secs.\n"
2019-09-22 01:30:07 +00:00
// 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