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,705 Comments

  1. Bookmark folder reorganised slightly to make this site easier to find, and a look at rivergrid earned the same accessibility upgrade, the small organisational moves I make for sites I expect to return to often are themselves a signal of how much I trust them and this site triggered those moves naturally.

  2. Мы используем современные и проверенные методики наркологии, медикаментозное лечение, психотерапию, детоксикацию, кодирование и программы длительной реабилитации. Подход подбирается индивидуально: врач оценивает состояние организма, характер зависимости, срок употребления, сопутствующие заболевания, психические нарушения, возраст, результаты обследования и анамнеза. Лечение может проходить амбулаторно, в стационаре или с оказанием отдельных медицинских услуг на дому. Если необходим срочный вызов нарколога, выездная бригада работает круглосуточно, включая ночь, выходные и праздничные дни.
    Изучить вопрос подробнее – частная наркологическая клиника Санкт-Петербург

  3. A particular pleasure to read this with a fresh coffee, and a look at goldentideemporium extended the pleasure across more pages, content that pairs well with quiet morning rituals is something I have come to value highly and this site has the kind of energy that fits naturally into a calm reading routine.

  4. Здорова, народ Близкий человек уже несколько дней в запое Родственники не знают что делать Таблетки не помогают Короче, единственный кто реально помог — нарколога домой с препаратами Через пару часов человек пришёл в себя В общем, телефон и цены тут — вызвать нарколога круглосуточно https://alkogolizm.narkolog-na-dom-volgograd13.ru Звоните прямо сейчас Перешлите тем кто в такой же ситуации

  5. Held my interest from the opening line through to the closing thought, and a stop at lumakit did the same, content that earns sustained attention in an environment full of distractions is doing something right and this site is clearly doing several things right rather than just one or two which I really appreciate.

Leave a Reply

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