Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Chaining with the help of utility functions #25

Merged
merged 2 commits into from
Apr 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
321 changes: 321 additions & 0 deletions chaning.ipynb

Large diffs are not rendered by default.

307 changes: 0 additions & 307 deletions simulating-dd1-queues.ipynb

This file was deleted.

317 changes: 317 additions & 0 deletions simulating-ddc-queues.ipynb

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"id": "01a45e8a-2206-461b-80c5-7970c3b5f7fb",
"metadata": {},
"source": [
"# Simulating M/D/K queues"
"# Simulating M/D/c queues"
]
},
{
Expand Down
5 changes: 3 additions & 2 deletions src/queue.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,11 +52,12 @@ def __process_departure_times(self) -> None:
start_at = max(self.__executors_at[earliest_executor_id], arrive_at)
processed_at = start_at + self.__execution_times[index]
# processing utilization
self.__utilization_by_executor[earliest_executor_id] += [self.__process_utilization(
utilization = self.__process_utilization(
arrive_at,
self.__executors_at[earliest_executor_id],
self.__execution_times[index]
)]
)
self.__utilization_by_executor[earliest_executor_id].append(utilization)
self.__executors_at[earliest_executor_id] = processed_at
self.__departure_times[index] = processed_at

Expand Down
Loading