Im working on this project, and it works fine when I use the sleep function, the only thing is my teacher doesnt want us to use the sleep function, when i use the Wait(NULL) function, it causes the processes to freeze, so instead i was trying to use srand(time(NULL)), but that works sometimes and doesnt work other times. I was wondering if anyone knew any function that I could use instead of the sleep function to delay a process. Im also not allowed to use busy wait loops. My code is also on this site,
and the part where I use srand(time(NULL)) is on line 00100.