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)

8,107 Comments

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

  2. Quietly enthusiastic about this site after the past few hours of reading, and a stop at dabbyrd extended that enthusiasm, the calibration of enthusiasm to evidence is something I try to maintain and this site has earned a calibrated quiet enthusiasm rather than the loud excitement that usually fades within a day or two of finding something.

  3. ScottGurgy ScottGurgy

    Нарколог на дом в Балашихе с быстрым приездом специалиста, осмотром пациента и медицинской поддержкой в наркологической клинике «Похмельная служба».
    Разобраться лучше – http://narkolog-na-dom-balashiha13-4.ru

  4. Москва, всем привет Муж просто потерял контроль Соседи стучат Нужен специалист прямо сейчас Короче, единственный кто реально помог — наркологическая служба на дом профессионально Приехал через 40 минут В общем, телефон и цены тут — доктор нарколог вывод из запоя на дому https://narkolog-na-dom-moskva-abc.ru Нарколог на дом — это быстро и эффективно Перешлите тем кто в такой же ситуации

Leave a Reply

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