os_sim
is a C++ project simulating an operating system. The project includes several files to manage different aspects of the operating system simulation. An upcoming feature will be allowing the user to make real time changes to the CPU (as of right now, you can only use OS functions in the main function).
CMakeLists.txt
: CMake configuration file to build the project.OpSys.cpp
: Contains the main functionality of the operating system simulation.OpSys.h
: Header file for theOpSys
class.PCB.cpp
: Implementation of the Process Control Block (PCB).PCB.h
: Header file for thePCB
class.utility.cpp
: Contains utility functions used by the project.README.md
: Project documentation.
- Install CMake: Ensure you have CMake installed on your system. You can download it from here.
- Create a Build Directory and enter it: Navigate to your project directory and create a build directory.
mkdir build cd build
- Generate Build Files: Run CMake to generate the build files.
cmake ..
- Build the Project: Compile the project using the generated build files.
cmake --build .
- Run the Executable: After building, you can run the generated executable (the name will depend on your configuration).
./os_sim
If you prefer using g++
to compile the project manually, you can do the following:
- Compile: Use
g++
to compile the source files.g++ -o os_sim OpSys.cpp PCB.cpp utility.cpp
- Run: Execute the compiled program.
./os_sim
This project is licensed under the MIT License. See the LICENSE file for details.
- umarhunter
For any questions or issues, please contact umarhunter.