Assignment 3: Lottery Scheduling + settickets(n) Implementation#274
Open
Matthiias-Dev2 wants to merge 10 commits intomit-pdos:masterfrom
Open
Assignment 3: Lottery Scheduling + settickets(n) Implementation#274Matthiias-Dev2 wants to merge 10 commits intomit-pdos:masterfrom
Matthiias-Dev2 wants to merge 10 commits intomit-pdos:masterfrom
Conversation
git commit -m "results: add lottery scheduling experiment write-up"
git commit -m "proc: add tickets field to struct proc for lottery scheduling"
git commit -m "proc: initialize tickets in allocproc and integrate lottery scheduling logic"
git commit -m "sysproc: implement sys_settickets system call handler"
git commit -m "syscall: add SYS_settickets definition" I'm copying and pasting these commits because I already did them through GitHub Codespace, but had issues.
syscall: register settickets in syscall table
user: declare settickets user-level interface
#include "syscall.h"
#include "traps.h"
#define SYSCALL(name) \
.globl name; \
name: \
movl $SYS_ ## name, %eax; \
int $T_SYSCALL; \
ret
SYSCALL(fork)
SYSCALL(exit)
SYSCALL(wait)
SYSCALL(pipe)
SYSCALL(read)
SYSCALL(write)
SYSCALL(close)
SYSCALL(kill)
SYSCALL(exec)
SYSCALL(open)
SYSCALL(mknod)
SYSCALL(unlink)
SYSCALL(fstat)
SYSCALL(link)
SYSCALL(mkdir)
SYSCALL(chdir)
SYSCALL(dup)
SYSCALL(getpid)
SYSCALL(sbrk)
SYSCALL(sleep)
SYSCALL(uptime)
SYSCALL(settickets)
defs: add prototypes for settickets and sys_settickets
build: update Makefile flags for successful xv6 compilation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.