int main(int argc, char* argv[]){
    
    std::vector<ProcessControlBlock> loadFile;
    loadFile = parseTextFile();
    TimeSlicePriority testAlgo(loadFile, 3);

	testAlgo.run(); 

    return 0;
}
Example #2
0
int main(int ac, char **args)
{
    parseTextFile(args[1]);
    buffer = malloc(NB_MAX_CHAR);
    do
    {
        fgets(buffer, NB_MAX_CHAR, stdin);
        puts(buffer);
        if(!feof(stdin))
            treatCommand(buffer[0]);
    }while(!feof(stdin));

    free(buffer);
    return 0;
}