aboutsummaryrefslogtreecommitdiffstats
path: root/bin/base_mt_task.c
diff options
context:
space:
mode:
Diffstat (limited to 'bin/base_mt_task.c')
-rw-r--r--bin/base_mt_task.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/bin/base_mt_task.c b/bin/base_mt_task.c
index 19afb28..802ef0b 100644
--- a/bin/base_mt_task.c
+++ b/bin/base_mt_task.c
@@ -21,8 +21,9 @@
21/* Include the LITMUS^RT API.*/ 21/* Include the LITMUS^RT API.*/
22#include "litmus.h" 22#include "litmus.h"
23 23
24#define PERIOD 100 24#define PERIOD 100
25#define EXEC_COST 10 25#define REL_DEADLINE 100
26#define EXEC_COST 10
26 27
27/* Let's create 10 threads in the example, 28/* Let's create 10 threads in the example,
28 * for a total utilization of 1. 29 * for a total utilization of 1.
@@ -130,7 +131,7 @@ void* rt_thread(void *tcontext)
130 * 1) Initialize real-time settings. 131 * 1) Initialize real-time settings.
131 */ 132 */
132 CALL( init_rt_thread() ); 133 CALL( init_rt_thread() );
133 CALL( sporadic_global(EXEC_COST, PERIOD) ); 134 CALL( sporadic_global(EXEC_COST, PERIOD, REL_DEADLINE) );
134 135
135 /***** 136 /*****
136 * 2) Transition to real-time mode. 137 * 2) Transition to real-time mode.