Hey all,

I've noticed that when I code a function that contains both user mode and privileged mode (system calls) instructions such as printf and write, respectively, the system calls are always processed first (or so it seems from the output) and the user mode instructions are only processed at the very end.

For example, if I mix up lines of printf and write instructions, all the write operations will be outputted first and then ALL the printf operations will be outputted at the very end.

Why is this?