/* This example accompanies the book Embedded Systems: Real-Time Operating Systems for the Arm Cortex, Volume 3, ISBN: 978-1466468863, Jonathan Valvano, copyright (c) 2026 Copyright 2026 by Jonathan W. Valvano, valvano@mail.utexas.edu You may use, edit, run or distribute this file as long as the above copyright notice remains THIS SOFTWARE IS PROVIDED "AS IS". NO WARRANTIES, WHETHER EXPRESS, IMPLIED OR STATUTORY, INCLUDING, BUT NOT LIMITED TO, IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE APPLY TO THIS SOFTWARE. VALVANO SHALL NOT, IN ANY CIRCUMSTANCES, BE LIABLE FOR SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, FOR ANY REASON WHATSOEVER. For more information about my classes, my research, and my books, see http://users.ece.utexas.edu/~valvano/ */ #define MAX 15000/100 char Times[MAX]; // filled with spaces char bestTimes[MAX]; int bestj,bestk,bestl; int ScheduleFinder(int ta, int tb, int tc, int td){ int i,j,k,l; int jitter=0; int thei,thejitter; // find schedule for task b with min jitter jitter = 100000; for(j=0; j