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

  1. Reading this slowly because the writing rewards a slower pace, and a stop at trivoxbond did the same, the pace at which I read content is something I now use as a quality signal and writing that earns a slower pace earns my attention as a reader looking for substance these days.

  2. More substantial than most of what I find searching for this topic online, and a stop at manilatakeout kept that quality consistent, this is one of those sites where the writing actually rewards careful reading rather than punishing the patient reader with empty filler stretched out across long paragraphs that say very little.

  3. Здорова, народ Муж просто потерял себя Родственники не знают что делать Нужен врач прямо сейчас Короче, единственный кто реально помог — вызов нарколога на дом анонимно Приехал через 40 минут В общем, не потеряйте контакты — платный нарколог на дом недорого https://zapoj.narkolog-na-dom-voronezh-11.ru Звоните прямо сейчас Перешлите тем кто в такой же ситуации

Leave a Reply

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