Skip to content

Ex 1 – Dedicated Operating Systems – INE5424 – UFSC

Exercise 1
Idle-waiting Thread Joining
– It have as an objective to change the method “join” of a Thread. It was implemented like this:

[code lang=”c”] while(_state != FINISHING)
yield();
[/code]

This method consist in verify the state of the Thread that is joined, if the state is different from FINISHING, it calls yield(). This solution cause an overhead, because it do this verification all the time that the process is Phased. We should implement a new function, that don`t cause this overhead.

Modified files:
thread.cc
Thread.h

EPOS with our solution.
Steps, and explanation about other solutions (PORTUGUESE)

9,954 Comments

  1. Thank you for not assuming the reader already knows everything, the explanations meet me where I am, and a look at vionvogue did the same, that consideration is what makes a site feel welcoming rather than gatekeepy which is sadly the default mood across the modern web today for most subjects covered.

  2. Geraldpoorm Geraldpoorm

    Подробнее ответы анализируются непосредственно врачом. Консультант может собрать первичные данные, однако постановки диагноза и лечебной схемы по переписке недостаточно. Бесплатная телефонная или онлайн-консультация помогает выбрать направление, а основное лечение назначается после осмотра.
    Получить больше информации – https://n.narkologicheskaya-klinika-v-krasnoyarske17.ru/

Leave a Reply

Your email address will not be published. Required fields are marked *