-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtasks.h
More file actions
31 lines (29 loc) · 930 Bytes
/
tasks.h
File metadata and controls
31 lines (29 loc) · 930 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
/*
* Matrix Task Processor - task module header file
* Based on Operating Systems: Three Easy Pieces by R. Arpaci-Dusseau and A. Arpaci-Dusseau
*
* Assignment 3 code
* Program operates on tasks submitted to the tasks_input directory
* Results are created in the tasks_output directory
*
* A bounded buffer is used to store pending tasks
* A producer thread reads tasks from the tasks_input directory
* Consumer threads perform tasks in parallel
* Program is designed to run as a daemon (i.e. forever) until receiving a request to exit.
*
* This program mimics the client/server processing model without the use of any networking constructs.
*
* Wes J. Lloyd
* University of Washington, Tacoma
* TCSS 422 - Operating Systems
* Spring 2017
*/
void *readtasks(void *arg);
void *dotasks(void *arg);
typedef struct __task_t {
char * name;
char * cmd;
int row;
int col;
int ele;
} task_t;