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)

11,107 Comments

  1. Decided not to skim despite my usual habit and was rewarded for the discipline, and a stop at ideasunlockgrowth earned the same patient approach, training myself to recognise sites that warrant slower reading is part of being a careful online reader and this site is the kind that helps me practice that skill regularly.

  2. VictorReply VictorReply

    Домашняя медицинская помощь возможна во многих случаях, однако окончательное решение о формате лечения принимает врач после осмотра. Вызывать нарколога рекомендуется при следующих проблемах:
    Подробнее – нарколог на дом цена в Екатеринбурге

  3. Morgantef Morgantef

    Общаемся без осуждения и давления, сохраняя спокойную атмосферу для пациента и семьи.
    Дополнительная информация – rastvor-dlya-vyvoda-iz-zapoya

Leave a Reply

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