ALEXIS LAZANAS
ALEXIS LAZANAS

Reputation: 13

multiprcessor scheduling simulation tips

I have a project in C++ to create a scheduling simulation that makes round-robin. The idea is to have a scheduler process as a father process which forks whenever it schedules a new process (and calls execl to the executable) or sends SIGCONT to it if it is stopped. The simulated system must have multiple schedulers running at the same time. So I assumed that we have the main process which forks to the schedulers and then the schedulers do their work. (Modifying a shared processes queue in one implementation using proper mutexes and modifying their own local queue in the second implementation). So far my impementation works perfectly (in both versions), but i wat to see how else i could simulate the multiple schedulers instead of processes, my first idea was to use threads but signals are process-wise so the idea is clearely off. Any other ideas?

Upvotes: -4

Views: 43

Answers (0)

Related Questions