Skip to Content
Computers as Components, 2nd Edition
book

Computers as Components, 2nd Edition

by Marilyn Wolf
July 2008
Intermediate to advanced
544 pages
16h 52m
English
Morgan Kaufmann
Content preview from Computers as Components, 2nd Edition
320 CHAPTER 6 Processes and Operating Systems
/* processes[] is an array of process activation records,
stored in order of priority, with processes[0] being
the highest-priority process */
Activation_record processes[NPROCESSES];
void RMA(int current) { /* current currently executing
process */
int i;
/* turn off current process (may be turned back on) */
processes[current].state READY_STATE;
/* find process to start executing */
for (i 0; i < NPROCESSES; i⫹⫹)
if (processes[i].state ⫽⫽ READY_STATE) {
/* make this the running process */
processes[i].state ⫽⫽ EXECUTING_STATE;
break;
}
}
FIGURE 6.12
C code for rate-monotonic scheduling.
6.3.2 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Computers as Components, 3rd Edition

Computers as Components, 3rd Edition

Marilyn Wolf
Computer System Designs: System-on-Chip

Computer System Designs: System-on-Chip

Michael J. Flynn, Wayne Luk
PC Hardware in a Nutshell, 3rd Edition

PC Hardware in a Nutshell, 3rd Edition

Robert Bruce Thompson, Barbara Fritchman Thompson

Publisher Resources

ISBN: 9780123743978