Beispiel #1
0
int main(int argc, char **argv) {
	
	Scheduler *s = new RoundRobinScheduler();
	Process *p1 = new Process("processes/1.proc");
	Process *p2 = new Process("processes/2.proc");
	Process *p3 = new Process("processes/3.proc");
	s->addProcess(p1);
	s->addProcess(p2);
	s->addProcess(p3);
	
	VOS *v = new VOS(p1,s);
}
Beispiel #2
0
int main()
{
	Output *out1 = new Output("First output", true);
	Output *out2 = new Output("Second output");

	Scheduler *sched = Scheduler::getInstance();
	sched->addProcess(out1);
	sched->addProcess(out2);
	sched->run();
}