Skip to content

# Initial Commit: Fair-Share Scheduler (Classes, Globals, and Scheduler)#8

Merged
hlbels merged 1 commit intomainfrom
hlbels-patch-2
Mar 10, 2025
Merged

# Initial Commit: Fair-Share Scheduler (Classes, Globals, and Scheduler)#8
hlbels merged 1 commit intomainfrom
hlbels-patch-2

Conversation

@hlbels
Copy link
Copy Markdown
Owner

@hlbels hlbels commented Mar 10, 2025

Initial Commit: Fair-Share Scheduler (Classes, Globals, and Scheduler)

🔹 Overview

This PR includes the foundational components for the Fair-Share Process Scheduler:

  • Process and User Classes: Defines the structure for users and processes.
  • Global Variables: Handles synchronization and process queueing.
  • Scheduler Function: Implements fair CPU time distribution using threads.

🔹 Key Features

✅ Implements a fair-share scheduling algorithm.
✅ Uses threads and mutexes to ensure only one process runs at a time.
✅ Supports multiple users with multiple processes dynamically.
✅ Logs scheduling events (Started, Paused, Finished) to output.txt.

🔹 Next Steps

  1. Implement input handling (readInputFile() function).
  2. Implement process execution function (executeProcess()).
  3. Complete main function to initialize the scheduler.

@hlbels hlbels self-assigned this Mar 10, 2025
@hlbels hlbels merged commit 0109c7d into main Mar 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Fair-Share Scheduler Implementation: Classes, Globals, and Scheduler Function

1 participant