Git Product home page Git Product logo

xv6-extended's Introduction

Implementations: 
1. Waitx():
    -> Works exactly like wait but updates the parameters wTime and rTime whos pointers are sent as arguments.
    -> rTime for a process is struct proc->rtime which is updated on every tick update in the trap function.
    -> wTime = etime-ctime-rtime (all from struct proc). ctime is set on process creation in allocproc() and etime is set on process exit in exit() and kill()

2. Getpinfo():
    -> Takes two integers as input, address to stuct proc_stat and pid.
    -> updates the feilds of struct proc_stat from the feilds from struct proc. 
    -> num_run for a process is updated everytime it is allocated to a processor.

3. FCFS:
    -> yeild function is called only in exit() function to ensure no preemption.
    -> scheduler finds the process with lowest ctime and assigns it to the processor.

4. PBS:
    -> scheduler finds the lowest value of p->prior (highest priority).
    -> it loops over all processes and allotes the processor to every process with prior value equal to what it found (Like in default scheduler)

xv6-extended's People

Contributors

kaashoek avatar rsc avatar phf avatar mohsinmamoon avatar aclements avatar mikecat avatar zeldovich avatar chibby0ne avatar gw avatar icenowy avatar beordle avatar saarett avatar tchajed avatar kehao95 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.