Untitled
unknown
plain_text
a year ago
266 B
6
Indexable
extern queue_t priority_queues[MAX_PRIO]; pcb_t *get_proc() { for (int prio = 0; prio < MAX_PRIO; prio++) { pcb_t *pcb = dequeue(&priority_queues[prio]); if (pcb != NULL) { return pcb; } } return NULL; }
Editor is loading...
Leave a Comment