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

  1. Мы работаем с вниманием к деталям повседневности: как человек засыпает на фоне вечернего света, сколько воды переносит малыми глотками, как реагирует на цифровые уведомления, есть ли привычные «включатели» тяги и как на организм влияет шумное окружение. Врач и куратор переводят этот жизненный контекст в ясные, измеримые ориентиры: время до сна, число пробуждений, вариабельность пульса к сумеркам, объём воды, аппетит, переносимость тёплой мягкой пищи. Решения принимаются адресно и последовательно, чтобы сохранять ясность днём и избегать ненужной фармаконагрузки.
    Углубиться в тему – https://narkologicheskaya-klinika-kaliningrad15.ru

  2. Came in confused about the topic and left with a much firmer grasp on it, and after ulveta I felt I could explain this to someone else without hesitation, that is the gold standard for any educational content and most sites simply fail to reach it ever which is unfortunate but true.

Leave a Reply

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