1 Réponse
+ 1
Here is a sample Python code to draw an RMA schedule algorithm using matplotlib:
import matplotlib.pyplot as plt
# x-axis values
x = [0, 1, 2, 3]
# y-axis values
y = [2, 4, 6, 8]
# plotting points on graph
plt.plot(x, y)
# setting labels for x-axis and y-axis
plt.xlabel("Time")
plt.ylabel("Priority")
# giving title to graph
plt.title("Rate Monotonic Assignment Schedule Algorithm")
# function to show the plot
plt.show()