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

  1. Closed it feeling I had taken something away rather than just consumed something, and a stop at capitalties extended that taking away feeling, the difference between content I extract value from and content I just pass through is something I track informally and this site is consistently in the value extraction column for me.

  2. Now noticing the careful balance the post struck between confidence and humility, and a stop at unifiedtrusthub maintained the same balance, finding the line between asserting and admitting is hard and this site has clearly developed the calibration to walk that line consistently which produces a more persuasive reading experience for me.

  3. Terryduago Terryduago

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

  4. I like the valuable information you provide in your articles.

    I will bookmark your weblog and check again here regularly.
    I’m quite sure I will learn a lot of new stuff right here!
    Best of luck for the next!

  5. Now appreciating that I did not feel exhausted after reading, and a stop at motionclarity extended that energising quality, content that leaves me with more attention than it consumed is rare and the gap between draining and energising content is real over the course of a typical day spent reading widely online.

Leave a Reply

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