Skip to content

Commit 4e18da7

Browse files
author
Mikaël BRIDAY
committed
draft lab1
1 parent a25b5ca commit 4e18da7

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

posix/booklet/trampoline-labs.tex

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -308,25 +308,24 @@ \section{Extended tasks and synchronization using events}
308308
\item modify the code of the tasks:
309309
\begin{itemize}
310310
\item task \texttt{task1} activates \texttt{task2} and \texttt{task3} then sets \texttt{evt\_2} and \texttt{evt\_3} before to terminate.
311-
\item tasks \texttt{task2} and \texttt{task3} wait for their event, clear it, and terminate.
311+
\item tasks \texttt{task2} and \texttt{task3} wait for their event, clear it, print their name on stdout (\texttt{==Taskx==}) and terminate.
312312
\end{itemize}
313313
\end{itemize}
314314

315315
Draw a schedule of the new system.
316-
Then execute the application to check the correctness of your diagram (before to run the application, add outputs in the code of the task, for instance writes to the LCD or LEDs to ease the correctness checking).
316+
Then execute the application to check the correctness of your diagram and check that the output order the one awaited. Then, in a second step, explain the trace generated and report each trace event to the schedule of the tasks.
317317

318318
\end{ex}
319319

320320
\begin{ex}
321-
Build an application to measure the execution time of \texttt{SetEvent} in the following cases:
321+
As in the \lstinline{ChainTask()} service call, give the location where to start and stop a stopwatch to measure the \texttt{SetEvent} service call duration in the following cases:
322322
\begin{itemize}
323323
\item fully preemptive scheduling, setting an event to a higher priority tasks that is not waiting for the event.
324324
\item fully preemptive scheduling, setting an event to a higher priority tasks that is waiting for the event.
325325
\item fully preemptive scheduling, setting an event to a lower priority tasks that is not waiting for the event.
326326
\item fully preemptive scheduling, setting an event to a lower priority tasks that is waiting for the event.
327327
\end{itemize}
328328

329-
Explain how to use the timer functions for each case and explain the results.
330329
\end{ex}
331330

332331
\begin{ex}
@@ -338,13 +337,13 @@ \section{Extended tasks and synchronization using events}
338337
\item \texttt{t1} prints ``I am t1'' and sets \texttt{evt\_1} of \texttt{server}.
339338
\end{itemize}
340339

341-
Before to run the application, draw a schedule of the execution. Add outputs in the bodies of the task (for instance writes to the LCD or the LEDs) to verify your schedule.
340+
Before to run the application, draw a schedule of the execution. Add outputs in the bodies of the task to verify your schedule.
342341
\end{ex}
343342

344343
\begin{ex}
345344
Extend the previous application by adding 2 tasks: \texttt{t2} and \texttt{t3} (priority 1 for both) and 2 events \texttt{evt\_2} and \texttt{evt\_3}. \texttt{server} activates \texttt{t1}, \texttt{t2} and \texttt{t3} and waits for one of the events. When one of the events is set, \texttt{server} activates the corresponding task again.
346345

347-
Before to run the application, draw a schedule of the execution. Add outputs in the bodies of the task (for instance writes to the LCD or the LEDs) to verify your schedule.
346+
Before to run the application, draw a schedule of the execution. Add outputs in the bodies of the task to verify your schedule.
348347
\end{ex}
349348

350349
%================================================================

0 commit comments

Comments
 (0)