A Python library for OS scheduling and page replacement algorithms.
Project description
LOGORYTHEM
A simple Python library for simulating common Operating System (OS) algorithms, including CPU scheduling and page replacement.
This project is designed to be a clean, importable library for academic use, allowing you to easily run and compare different algorithms.
Features
logorythem includes two main modules:
🧠 CPU Scheduling (scheduling)
Calculates metrics like waiting time, turnaround time, and completion time for a list of processes.
- First-Come, First-Served (FCFS)
- Round Robin (RR)
- Shortest Job First (SJF) Non-Preemptive
- Shortest Job First (SJF) Preemptive (SRTF)
💾 Page Replacement (page_replacement)
Calculates the total number of page faults for a given reference string.
- First-In, First-Out (FIFO)
- Least Recently Used (LRU)
- Optimal (OPT)
Installation
This project is not on PyPI. You can install it locally from this source code.
- Clone or download this repository.
- Navigate to the root
LOGORYTHEMdirectory (the one withpyproject.toml). - Run the local install command:
# This command builds and installs the library in your Python environment
pip install .
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file logorythem-0.1.0.tar.gz.
File metadata
- Download URL: logorythem-0.1.0.tar.gz
- Upload date:
- Size: 6.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
15b9c103caf9e140244e4c2dbd2d2c226e658e85055fa92adf63994c54c0595d
|
|
| MD5 |
6759d7e07ba9210fadd0997aa41f8d4d
|
|
| BLAKE2b-256 |
39fd91b681692af48125884bb4467735799ad1fecc8a74d54f15289cdb9c5765
|
File details
Details for the file logorythem-0.1.0-py3-none-any.whl.
File metadata
- Download URL: logorythem-0.1.0-py3-none-any.whl
- Upload date:
- Size: 10.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0eeb5ae4ea53e175c758b1cbb99c750fe86b2e112bcb81dedc44a7ce76ad9ed0
|
|
| MD5 |
03d1efc298a2cbc76c5ad4ed0c3f159a
|
|
| BLAKE2b-256 |
746d1d62c798a0d7f4422ac1a09bddfa4697eb0bad0a644eda0f01e1d18af82a
|