Writing a Process Scheduler Simulation in C of FreeBSD reddit / freebsd ---------------------------------------------------------------------- Epicvisiions101 · 2020-12-09 03:11 Hi, I’m writing a simulation of a process scheduler in C for FreeBSD. Any tips or guidance here? Doesn’t have to use pthreads or posix. Just a simple demonstration of a priority round robbin with FreeBSD tweaks. ---------------------------------------------------------------------- istarian · 2020-12-09 05:04 Unless you use actual processes (sub processes of the initial/main one?) maybe a simulated cpu would be good? After all you need a bunch of defined tasks that will take at least two time slices whose execution can be halted and resumed plus an environment where you can interleave doing them in a scheduled fashion. ---------------------------------------------------------------------- alx82 · 2020-12-09 06:18 Are you writing a simulation of FreeBSD's scheduler (ULE)? What is the purpose of your project? If you are interested in scheduler tracing, then dtrace is what you are looking for https://wiki.freebsd.org/DTrace/Tutorial ---------------------------------------------------------------------- Epicvisiions101 · 2020-12-09 14:31 The purpose of the project is to simply simulate the scheduler, using a priority round robbin and printing out the simulation.