simulate_cpu_scheduling
Calculate waiting, turnaround, and response metrics by simulating CPU scheduling algorithms like FCFS, SJF, RR, and Priority.
Instructions
Simulate CPU scheduling and report waiting, turnaround, and response metrics.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"jobs": "<jobs>"
},
"name": "simulate_cpu_scheduling"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| jobs | Yes | ||
| algorithm | No | FCFS, SJF, RR, or PRIORITY; lower priority numbers run first | RR |
| time_slice | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| jobs | Yes | ||
| metrics | Yes | ||
| timeline | Yes | ||
| algorithm | Yes | ||
| time_slice | No |