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)

6,805 Comments

  1. Looking through the archives suggests this site has been doing this for a while at this level, and a look at shortwatches confirmed the long term consistency, sites that have maintained quality across years rather than just a recent stretch are sites with serious editorial discipline and this one has clearly been at it for a while.

  2. Considered as a whole this site has developed a coherent point of view that comes through in individual pieces, and a look at pangfan continued displaying that coherence, sites with a unified perspective rather than a grab bag of takes are sites with editorial maturity and this one has clearly developed that maturity through years of work.

  3. united states online live casino, best online pokies
    in canada and best usa online casino reviews, or cahuilla casino ausaa california

    Feel free to surf to my web blog :: wing out blackjack (Bridgette)

Leave a Reply

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