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)

10,408 Comments

  1. Vernonfault Vernonfault

    Запой может длиться несколько дней, неделю и дольше. При сформированном алкоголизме человек нередко продолжает пить уже не ради опьянения, а чтобы временно уменьшить проявления отмены. Без новой дозы спиртного появляются тремор, бессонница, тревога, слабость, рвота и другие неприятные ощущения. Такое состояние требует внимания, особенно если у пациента уже имеются хронические заболевания или предыдущие осложнения.
    Ознакомиться с деталями – вывод из запоя круглосуточно в Красноярске

  2. Spent a few minutes here and came away with a clearer picture of the topic, the writing keeps things simple without dumbing them down, and after a stop at junopick the rest of the points lined up neatly which is something I appreciate when I am short on time and need answers fast.

  3. Ernestned Ernestned

    Врач спрашивает о длительности употребления, количестве алкоголя, наркотиков и предыдущем лечении. Клиника учитывает хронические болезни, психологические проблемы и готовность к терапии. Специалисты объясняют, какие подходы подходят и как строится лечение.
    Узнать больше – https://5.narkologicheskaya-klinika-v-krasnoyarske17.ru/

Leave a Reply

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