Giter Site home page Giter Site logo

oxydized_screeps's People

Contributors

asalvail avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

oxydized_screeps's Issues

Add threads to the OS.

For the sake of our OS, we would have processes and threads.

Processes can be scheduled and have memory that is theirs only.
Threads could be scheduled and share their memory with their parent process. Doing so could enable easier coordination between multiple jobs, at the price of needing to be more careful with the memory ownership (rust should help with that).

There is something to be said about only having threads running (so a process would spawn a "main thread"). This would make everything fairly uniform from the kernel/scheduler point of view, but would add a layer of complexity on the process side.

Yield should also return a state pointer

This is to implement a poor man's version of generator. If Yield returns an integer, run can use that integer to match where to resume in its code.

  • Add a u8 state tracker (maybe wrap it in something fancier?
  • Modify the scheduler to keep this in run tasks
  • Modify the process trait to receive that state value.

Message Handling

Messages aren't yet supported. A way to handle figuring out where to send a message would be for some processes to act as services and register themselves as such to the kernel using a SysCall::register_service.
Messages could be a HashMap<String, i32>. TBD

  • Add a SysCall::send_message that sends a message and then either automatically yield or use as a recursive type.
  • Add a SysCall::register_service to register that process to the kernel.
  • Modify Kernel::terminate to unregister services.

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.