Testul 12 rulează funcțiile cu _13? Avem 2 threaduri de aceeași prioritate.
Ordinea de rulare: -> handler_13_1 (priority 0): so_fork, creates handler_13_2 of priority 0. Priority is not higher so no preemption. Will count towards the time quantum as it didn’t trigger a preemption. -> handler_13_1: so_exec on line 101 (time quantum expires, preemption) -> handler_13_2: so_exec on line 79 (okay) -> handler_13_2: so_exec on line 81 (time quantum expires, preemption) -> handler_13_1: so_exec on line 103 (okay) -> handler_13_1: so_exec on line 105 (time quantum expires, preemption) -> handler_13_2: so_exec on line 83 (okay) -> handler_13_2: so_exec on line 85 (time quantum expires, preemption) -> handler_13_1: so_exec on line 107 (okay) -> line 111: handler_13_1 finishes, so handler_13_2 will continue running -> handler_13_2: so_exec on line 87 (okay) -> line 89: handler_13_2 finishes, so_end on line 125 may now continue. Line numbers in checker-lin/_test/test_exec.c Sent from Mail for Windows 10 From: Alexandru Fazakas Sent: Wednesday, May 8, 2019 6:24 PM To: Paul Olaru Cc: Sisteme de Operare Subject: Re: [so] [Tema 4] [Linux] Nelamurire testul 12, exec preemption Salut, Nu va mai fi un thread care executa "test_sched_handler_13_2", din moment ce primul handler face so_fork pe el la inceput? Alex On Wed, May 8, 2019 at 6:23 PM Paul Olaru <[email protected]> wrote: Nefiind alt thread ar trebui să își poată termina treaba -- tot el să continue execuția. On Wed, May 8, 2019, 6:21 PM Alexandru Fazakas via so <[email protected]> wrote: Salut, Care ar trebui sa fie mai exact comportamentul testului 12, "test exec preemption"? Mie imi esueaza cu "ERR: invalid tasks order" desi tot ce se intampla este ca test_sched_handler_13_1 ruleaza 2 instructiuni. Nu acesta ar trebui sa fie executat primul? Mersi, Alex _______________________________________________ http://ocw.cs.pub.ro/courses/so/info/lista-discutii
_______________________________________________ http://ocw.cs.pub.ro/courses/so/info/lista-discutii
