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

  1. Реабилитационные мероприятия в клинике направлены на устранение соматических последствий зависимости, нормализацию когнитивных функций и восстановление социальной адаптации. Для этого используются современные методики физиотерапии, диетологической коррекции и психологического сопровождения, позволяющие закрепить достигнутые результаты лечения.
    Изучить вопрос глубже – наркологическая клиника лечение алкоголизма в санкт-петербурге

  2. Vague feelings of recognition kept surfacing as I read because the writing names things I have been thinking, and a look at harborhardware produced more of those recognition moments, content that gives shape to private intuitions is content that makes me feel less alone in my own thinking and this site has that effect.

  3. Picked a friend mentally as the audience for this and decided to send the link, and a look at rainstoneoutpost confirmed the send was the right choice, choosing whom to share content with is a small act of curation that I take more seriously than the public sharing most platforms encourage these days online.

  4. BrentDix BrentDix

    Помощь может включать консультацию, детоксикацию, стационар и дальнейшее сопровождение по показаниям.
    Ознакомиться с деталями – moskva-kapelnica-ot-alkogolya

  5. Michaelbus Michaelbus

    Вывод из запоя на дому в Челябинске — удобное решение для тех, кто не может посетить клинику. Наши специалисты приедут к вам домой, проведут необходимую диагностику и лечение.
    Выяснить больше – вывод из запоя челябинск

Leave a Reply

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