Skip to content

Assignment 3: Lottery Scheduling + settickets(n) Implementation#274

Open
Matthiias-Dev2 wants to merge 10 commits intomit-pdos:masterfrom
Matthiias-Dev2:master
Open

Assignment 3: Lottery Scheduling + settickets(n) Implementation#274
Matthiias-Dev2 wants to merge 10 commits intomit-pdos:masterfrom
Matthiias-Dev2:master

Conversation

@Matthiias-Dev2
Copy link

No description provided.

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant