GithubHelp home page GithubHelp logo

razdeep / operating-system-assignment Goto Github PK

View Code? Open in Web Editor NEW
2.0 1.0 1.0 595 KB

A repository containing my academic tasks of CSE316 (LPU Sem 4)

License: MIT License

C 95.74% Makefile 4.26%
academic algorithm c thread semaphore mutex-lock

operating-system-assignment's Introduction

CSE 316 Assignment

This repository contains my solutions for Simulation-based Academic Task of Operating System CSE316 for the Academic Year 2019 (Semester 4).

Personal Information

Name : Rajdeep Roy Chowdhury

Registration Number : 11712546

Roll Number : 18

Section : K17SJ

Group : 1

Questions

Task 05

A university computer science department has a teaching assistant (TA) who helps undergraduate students with their programming assignments during regular office hours. The TA’s office is rather small and has room for only one desk with a chair and computer. There are three chairs in the hallway outside the office where students can sit and wait if the TA is currently helping another student. When there are no students who need help during office hours, the TA sits at the desk and takes a nap. If a student arrives during office hours and finds the TA sleeping, the student must awaken the TA to ask for help. If a student arrives and finds the TA currently helping another student, the student sits on one of the chairs in the hallway and waits. If no chairs are available, the student will come back at a later time.

Task 22

Write a program that implements the FIFO page replacement algorithm. First, generate a random page-reference string where page numbers range from 0 to 9. Apply the random page-reference string to each algorithm, and record the number of page faults incurred by each algorithm. Implement the replacement algorithm so that the number of page frames can vary from 1 to 7. Assume that demand paging is used.

How to execute?

  • Task 05 Click here to navigate to the TASK05 guide
  • Task 22 Click here to navigate to the TASK22 guide

Want to compile manually?

  • Compile by firing the following command in the respective TASK directories
$ gcc main.c -lphread
  • Run the executable object file by issuing the following command
$ ./a.out

operating-system-assignment's People

Contributors

razdeep avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Forkers

andreileonsalas

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.