[so] [Tema 4] [Linux] Nelamurire testul 12, exec preemption
Alexandru Fazakas
alex.fazakas97 at gmail.com
Wed May 8 20:17:31 EEST 2019
Salut,
Inteleg. Mersi de explicatie! :)
Alex
On Wed, 8 May 2019 at 18:40, Paul Olaru <olarupaulstelian97 at gmail.com>
wrote:
> 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 <https://go.microsoft.com/fwlink/?LinkId=550986> for
> Windows 10
>
>
>
> *From: *Alexandru Fazakas <alex.fazakas97 at gmail.com>
> *Sent: *Wednesday, May 8, 2019 6:24 PM
> *To: *Paul Olaru <olarupaulstelian97 at gmail.com>
> *Cc: *Sisteme de Operare <so at cursuri.cs.pub.ro>
> *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 <olarupaulstelian97 at gmail.com>
> 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 <
> so at cursuri.cs.pub.ro> 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
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://cursuri.cs.pub.ro/pipermail/so/attachments/20190508/597de017/attachment-0001.html>
More information about the so
mailing list