Generator of solution for one of the tasks on the semester test at MIPT (3 sem, сomputer techologies)

Page fault counter + table painter

this one was written one day before the final test. This program counts the number of PF(page faults) and also prints tables for different algorithms (FIFS, LRU, OPT)

Code

Don't pay too much attention to this code, because there is a lot of shitcode, xD.

Hot to use

make
cd Page-fault-counter/
./a __PROC_ALLOC_FRAMES__ [queue of frames]

Перерисовать таблицы, чтобы семер не спросил как вы получили ответ. P.S. для FIFO, перед перенесением в тетрадь, таблицу нужно транспонировать.

Example

./a 3 1 2 3 5 2 1 4 5 2 1 3 4 1 2 5 1 3 2 4

There is 3 -- number of frames allocated to the process.

So there you can see example of output:

output

Similar Resources

This is the repo for the microcontroller part of project Cleanurge - a scalable IoT powered waste management system, our solution towards a greener world.

This is the repo for the microcontroller part of project Cleanurge - a scalable IoT powered waste management system, our solution towards a greener world.

Cleanurge A scalable waste management system powered by IoT. There are 3 repositories for the entire cleanurge system in total cleanurge-mcu: Containi

Oct 11, 2021

Files for my solution to the SSTIC 2021 challenge

SSTIC 2021 Challenge Writeup This repository hosts the files for my solution to the SSTIC 2021 challenge. The corresponding writeup can be found on my

Aug 17, 2022

Smart Home Total Solution - Keyword Recognition

Smart Home Total Solution - Keyword Recognition

Introduction Arm IoT Total Solutions provides a complete solution designed for specific use-cases, leaving developers to focus on what really matters

May 7, 2022

Multi watch-face solution for Watchy

watchy999 A Multi watch-face solution for Watchy What started out as a way to have more than one watch face on the Watchy by SQFMI, has turned into so

Dec 18, 2022

ESP Insights is a remote diagnostics solution that allows users to remotely monitor the health of ESP devices in the field.

ESP Insights is a remote diagnostics solution that allows users to remotely monitor the health of ESP devices in the field.

ESP Insights is a remote diagnostics solution that allows users to remotely monitor the health of ESP devices in the field.

Dec 26, 2022

This is a repository entirely dedicated to all kind of questions ranging from basic DSA to CP. It aims to provide a solution to different questions. 📚

🎉 CP-DSA-Questions 🎉 This is a repository entirely dedicated to all kind of questions ranging from basic DSA to CP. It aims to provide a solution to

Dec 28, 2022

This repo contains solution of 450 DSA sheet by love babbar

450DSA This repo contains solution of 450 DSA sheet by love babbar . Here is the link for that list : https://450dsa.com/ Guidlines to be followed Onl

Aug 14, 2022

Sharpmake is an open-source C#-based solution for generating project definition files, such as Visual Studio projects and solutions, GNU makefiles, Xcode projects, etc.

Sharpmake Introduction Sharpmake is a generator for Visual Studio projects and solutions. It is similar to CMake and Premake, but it is designed for s

Dec 23, 2022

Accident Detection Prevention and an Emergency Solution (ADPES)

 Accident Detection Prevention and an Emergency Solution (ADPES)

Arduino Code for integration of GSM module, GPS module, and various sensor to implement Accident Detection Prevention and an Emergency Solution (ADPES).

Nov 22, 2022
2nd Semester C Language Project-Cricket Score Generator

Semester-2-Project 2nd Semester C Language Project-Cricket Score Generator TITLE: Cricket Score Generator Objectives: To generate the score card for a

Jan 9, 2022
Is this hardware solution the ultimate in switch bounce elimination? Simple PCB, cheap components = final solution!
Is this hardware solution the ultimate in switch bounce elimination? Simple PCB, cheap components = final solution!

#230 Ultimate Switch Bounce Eliminator Direct link to video: https://youtu.be/b2uUYiGrS5Y It's time to try a final, alternative approach to the ubiqui

Nov 7, 2022
A simple one header solution to interacting with Windows WMI in C++

?? WinWMI A simple one header solution to interacting with Windows WMI in C++ Usage Just #include "winwmi.hpp" in your code! Initialize To initialize

Nov 29, 2022
Photon OS DPDK and Packet Generator, RT Test, TF2 docker image.

photongen Photon OS DPDK and packet generator , cyclictest , TF2 with CUDA docker image. DPKD libs The build proccess builds and installs all shared l

Sep 13, 2022
Contains a sudoku solver - OCR. Project done with classmates during third semester at EPITA.

sudokUwU sudokUwU is a sudoku solver made by 4 students at EPITA. This project is a mandatory work from S3 cycle! The Team Johan Tran Adrian Grillet V

May 5, 2022
Assignments for Operating System (CO2017) - Semester 202 - HCMUT
Assignments for Operating System (CO2017) - Semester 202 - HCMUT

VIETNAM NATIONAL UNIVERSITY, HO CHI MINH CITY UNIVERSITY OF TECHNOLOGY FACULTY OF COMPUTER SCIENCE AND ENGINEERING     Operating System / Semester 202

Dec 23, 2021
CSC404: Computer Graphics [CG] & CSL402: Computer Graphics Lab [CG Lab]

COMPUTER-GRAPHICS-AND-COMPUTER-GRAPHICS-LAB CSC404: CG & CSL402: CG LAB [SEMESTER IV] Syllabus CG - Reference Books THE WALL MEGA SATISH - AUTHOR CG C

Apr 28, 2022
It creates a random word by mixing two English common words into a single one, each one with the first character in capital letter. It also allow you to scroll down infinitely without repeating the same word twice.

startup_namer A new Flutter project. Getting Started This project is a starting point for a Flutter application. A few resources to get you started if

Feb 3, 2022
A collection of scripts written in many different programming languages and each developed independently to perform very specific tasks (big or small)

Script Collection A collection of scripts written in many different programming languages and each developed independently to perform very specific ta

Aug 31, 2021
Rmaxcut finds an approximate solution to a weighted max-cut problem via random perturbation.

Rmaxcut finds an approximate solution to a weighted max-cut problem via random perturbation. Each line in an input file consists of the first nodeID, the second nodeID and an integer weight.

Apr 28, 2021