Giter Site home page Giter Site logo

vickydarika / fall-2019-operating-systems Goto Github PK

View Code? Open in Web Editor NEW

This project forked from kuanhungchen/fall-2019-operating-systems

0.0 0.0 0.0 1.26 MB

๐Ÿ”„ A thread switching package which targets at Edsim51 simulator.

Makefile 3.63% C 96.37%

fall-2019-operating-systems's Introduction

Fall-2019-Operating-Systems

Implementation of a multi-threading package in C language and some test-cases.

Requirements

You need Edsim51 to simulate 8051 processor and SDCC to generate Edsim51-targeted files.

  • Edsim51

    • From http://edsim51.com/
    • Runs as a Java app
    • DI version simulates a complete embedded system
    • LCD, LEDs, keypad, bank of buttons, ADC, DAC
    • cycle-accurate processor
  • SDCC for Edsim51

Contents

ppc stands for programming project checkpoint.

  • ppc 1: cooperative thread-switching
  • ppc 2: preemptive thread-switching
  • ppc 3: semaphore + bounded-buffer example
  • ppc 4: two producers and one consumer example
  • ppc 5: delay function + parking lot example

Each ppc is based on the previous one.

Usage

  1. In each ppc directory, use make command to generate .hex file.

    1

    The warning 85 can be ignored.

  2. Click Load in Edsim51 simulator and select the generated .hex file.

    2

  3. Click Assm.

    3

  4. Now you can click Run to execute or Step to execute by one step.

    You can modify the Update Freq. to change the execution speed.

  5. If you modify the source code, then you need to use make clean to remove old .hex file and re-generate.

    4

Contact

Feel free to email me at [email protected] or open an issue here if you have any ideas.

fall-2019-operating-systems's People

Contributors

kuanhungchen 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.