X-Git-Url: https://git.martlubbers.net/?a=blobdiff_plain;f=mart%2Fex03%2Fexplanations.txt;h=5ae580a421aa2d6e50defcb4479bd4b01a901818;hb=4367e5a28ec4d81771a05d9a8631995f5356d270;hp=941a767005a35d36d32924514c811dd2c055f4b8;hpb=cb6632a064a7688274a0a89def28dbe5bcce5693;p=des2015.git diff --git a/mart/ex03/explanations.txt b/mart/ex03/explanations.txt index 941a767..5ae580a 100644 --- a/mart/ex03/explanations.txt +++ b/mart/ex03/explanations.txt @@ -10,6 +10,4 @@ line up in the queue again. This goes on, tasks taking turns, till the tasks are finished. 3c. -rt_sem_v doesn't work because they are released and the first one will get the -lock. rt_sem_broadcast works because all tasks are released at the same time -and the priority is then the next measure of who goes first. +Using semaphore, we can start task that has higher priority than the others. As we can see from the output, the order of the task is based on its priority.