Giter Site home page Giter Site logo

eternalearth888 / csci442_project04 Goto Github PK

View Code? Open in Web Editor NEW
0.0 4.0 0.0 60.23 MB

csci442 | Operating Systems | fall 2013 | camp | project04

License: Other

Shell 1.95% C 80.82% D 8.28% Rebol 0.01% Perl 0.14% R 0.01% C++ 4.58% Objective-C 0.24% Max 0.01% CLIPS 0.01% Ada 0.13% Assembly 3.59% Oxygene 0.06% C# 0.08% Awk 0.05% Tcl 0.01% Graphviz (DOT) 0.01% Arc 0.01% XSLT 0.02% CSS 0.01%

csci442_project04's Introduction

#csci442 | fall 2013 | camp | project04 ##TEAM

  • Maria Deslis @eternalearth888
  • Mykala Miller @mymiller

###What is the purpose of the page cache? the page cache (free_page_cache) is used for processes that require only 1 page of memory and have no memory restrictions. It is treated like a stack, and the most recently freed page is given to the process, making the allocation of this type of process much quicker than iterating through the bitmap for the first available page.

###Provide a narrative description of the findbit() function findbit() is a function that takes 5 integers. one represents the lower-bound page number the process can be allocated to (low) one representing where the code should start scanning memory (startscan) one representing the number of pages the process needs (pages) one representing the memory flags associated with the process (memflags) - this variable is unused in the function one representing the length of the hole that was found

	it iterates through all the possible pages bound by startscan and the lower bound, and:
		If the current page being looked at is not free, it will adjust the current page accordingly
		Otherwise, it will find the next-largest hole and return its starting address

###Provide pseudo-code of how you would implement worst-fit memory allocation (where worst-fit is putting the process into the largest hole possible) for all entries in free_pages_bitmap: if the last page was free: if the current page is not free: if the length of the most recent hole > the maximum length found so far: initial page index of largest hole = initial page index of the most recent hole else: increment the length of the current hole else if the current page is free: indicate that the last page is free for future iterations length of the current hole = 1 total_free_pages++; starting index of this hole = current index

ensure that the length of the largest hole is greater than the number of pages being requested

initial page for the process = initial page of largest hole

###Hardest part of the assignment The hardest part of the assignment was proving that our change to first fir worked. It was tedious to look at all of our printout statements

###Additional comments N/A

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.