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

  1. Looking at the surface design and the substance together this site has both right, and a look at urbanwave reinforced that integrated quality, sites where presentation and content reinforce each other rather than fighting are sites with full editorial coherence and this one has clearly invested in both layers in a balanced way.

  2. PatrickLAm PatrickLAm

    Профилактика рецидивов после запоя в стационаре Балашихи. Мы поможем вам предотвратить повторные случаи запоя и поддержим вас на пути к трезвой жизни.
    Подробнее тут – анонимный вывод из запоя балашиха

  3. Came away with a small but real shift in perspective on the topic, and a stop at inkedmeadow pushed that shift a bit further, the kind of subtle reframing that good writing does to a reader without making a big deal of it is something I always appreciate when it happens which is sadly not that often.

Leave a Reply

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