Hello,
Is it important to have functions ordered properly? For example, if I have
void foo()
bar();
void bar()
printf("bar n");
This results in an error because you can't call bar() above where bar() is declared. This is a simple fix on a co...
Hello
1) If I have 2 or more -o options, do file names have to satisfy all -o options, or do they have to only satisfy one or more?
For example, lets say I have "file.txt" and "notes.docx", with -o globs "file " and "notes ". Should both files be synce...
Hello,
Do we need to free absolutely everything that we've malloc'd after the program finishes syncing and is about to exit? It's my understanding that when a process terminates, it's memory is freed automatically so it's sort of unneeded unless you w...
Since moving processes between states requires the OS to spend time on the CPU, I had assumed that this would also be the case for the databus. However, judging from the sample solution, the databus acquisition seems to run in parallel, essentially j...
Sometimes when a state transition is made, the transition itself takes 1usec to run, but other times it doesn't. Maybe I'm misunderstanding something about the correct behaviour.
For example, at the start of every boot, a process gets spawned and is m...
There is a maximum amount of running processes, which implies that spawn will block if the limit has been reached. However, the project sheet has no mention of it. What's the expected behaviour of spawn when the max amount of running processes has be...
Hello,
I heard Chris say in one of the lectures workshops that one of the ways you could advance time was to increment the clock by 1usec at a time and check what's happening at that point. However, this would mean for things like longsleep, there wou...
Will I penalised for using global variables? I've heard that it's bad practice in C, but I don't see how I could possibly pass half a dozen state variables to every function, plus the other variables specific to each function. I could make a struct a...
Hello, I have a question about spawning processes.
If I have a command called "command1" for example, and it has a system call that spawns "command2", it would be easier for us (with the system that we're thinking of using) to have "command2" be defi...
Hello, I have some questions about the project. Some of them might be kinda obvious, but I want to make sure I understand.
1) Lets say the time-quantum is 100usecs, and a process in the running state has accumulated 90usecs of CPU time so far. If the ...