How do you delegate tasks for N threads such that the workload is evenly distributed? Say we have a queue [the] -> [quick] -> [brown] -> [f ...
How do you delegate tasks for N threads such that the workload is evenly distributed? Say we have a queue [the] -> [quick] -> [brown] -> [f ...
I'm taking an OS class and we have to implement dup2() in xv6. The code I've written should theoretically work, but, when I try to execute tests, it d ...
Before anybody tells me that this technology is outdated, I am aware however the scope of the project is very specific. My requirement is to print a ...
There is some structure: and two system functions: My question. Right now I'm learning the OS XV6. I need to write some program for getting a sy ...
I have to pass a string into a system call in xv6, so I know I have to use argstr(), my question lies with implementing it. Here is what I have added ...
uint memsize(void){ // Simply insert the memory size of the current process into size and return size uint size; struct proc *p; p = mypro ...
In xv6-x86 every cpu struct has a gdt: but it is removed in xv6-riscv : so the gdt is not necessary in OS? quite confused and appreciate for any ...
Let's assume you have an OS that tries to run threads in round-robin scheduling. I know there are two instances when the OS will try to switch between ...
This is the echo utility program. It reads the command-line argument from the console and prints it back to the console. In the following block of cod ...
I'm trying to build a xv6-like system and I'm copying xv6's code below: This is the part where ELF is loaded into memory. It checks every PT_LOAD ...
I am trying to write a program in C (for xv6) that returns the last "n" number of lines of input text or a file (essentially tail) with the exception ...
Now I am trying to access makefile variable in my user program in xv6. In other linux system, it can be easily achieved by doing that in makefile, ...
In start.c/timerinit(), timervec be written into mtvec. But I don't know why this is needed? As before timerinit(), all interrupts & exceptions ar ...
The output of the following code is just "hello!", which is confusing because when I do make qemu to start xv6 everything compiles well, but obviously ...
I am trying to modify this xv6 c file into a hex viewer. I tried to utilize printf(%02X) but to no avail. I tried doing different combinations of plac ...
In copyuvm function setupkvm is called to set kernel virtual memory. Why do we need to setup kernel virtual memory when we are copying user process ? ...
I am using WSL-Ubuntu in Visual Studio Code and I have gcc, gdb, Qemu all installed and the xv6-public git cloned. I can cd into the xv6 directory and ...
I'm trying to loop through all pages for a process in xv6. I've looked at this diagram to understand how it works: but my code is getting: Code: ...
I have been trying to install xv6 using the following commands: I get the following error while running make qemu command As suggested at variou ...
I'm doing an assignment, and I was wondering if anybody could point me in the right direction. I need to draw a square using 4 system call methods th ...