Perplexed on implementing lottery scheduler for xv6
I know this likely isn’t the first time questions have been asked about lottery schedulers, but I’ve been doing a lot of searching, and I’m just having a ton of difficulty with figuring all of this out. This is for a college project, and the task seems simple enough; I just need to define a couple of functions, and also make some modifications to the proc.c file to get it to work. It’s that I’ve come across a bunch of different sources giving different ways to do so, that just leaves me feeling very jumbled. The file I need to run is below: