Skip to content
Snippets Groups Projects
Commit 1897644d authored by CodeDynasty05's avatar CodeDynasty05
Browse files

Headers of some essential modules added

parent a981d695
Branches
Tags
1 merge request!1Headers of some essential modules added
// parser.h
#ifndef PARSER_H
#define PARSER_H
#include "process.h"
int parse_workload(const char *filename, workload_item *items, size_t *count);
#endif
#ifndef PROCESS_H
#define PROCESS_H
#include <stddef.h>
typedef struct {
int pid;
int ppid;
size_t ts;
size_t tf;
size_t idle;
char cmd[32]; // assuming max command length
int prio;
} workload_item;
#endif
// scheduler.h
#ifndef SCHEDULER_H
#define SCHEDULER_H
#include "process.h"
void run_scheduler(workload_item *items, size_t count);
#endif
\ No newline at end of file
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment