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)

2,558 Comments

  1. trendycartspace trendycartspace

    One of the more honest takes on the topic I have seen lately, no spin and no oversell, and a stop at trendycartspace kept that going, the kind of voice the open web could use a lot more of rather than the endless echo chamber of recycled opinions floating around every social platform these days.

  2. Really thankful for posts that respect a reader’s time, this one does, and a quick look at linkarrow was the same, no need to scroll through endless intros just to get to the actual content, that approach alone is enough reason to come back here regularly for the kind of writing offered.

  3. Reading this in a quiet hour and finding it suited the quiet, and a stop at leadscale extended the quiet reading mood, content that matches its own optimal reading conditions rather than fighting them is content that has been thoughtfully calibrated and this site reads as having a particular reading mood in mind throughout.

  4. rapidcartsolutions rapidcartsolutions

    Reading this on a difficult day was a small bright spot, and a stop at rapidcartsolutions extended that brightness, content that improves a hard day is content that has earned a particular kind of place in my reading habits and this site is occupying that uplifting role for me today which I appreciate clearly.

  5. Honest reaction is that I want to send this to a friend who would benefit from it, and a look at adquill added more material I will pass along too, the impulse to share is the strongest signal I have for content quality and this site is generating that impulse cleanly across multiple posts.

  6. trendycartspace trendycartspace

    Thanks for keeping the writing direct without losing the warmth that makes content feel human, and a stop at trendycartspace carried both qualities forward, balancing professionalism and personality is a rare skill and the writers here have clearly figured out how to consistently land it across many posts which I notice.

  7. Honestly the simplicity of the explanation made the topic click for me in a way other writeups had not, and a look at adquill continued that clarity into related areas, when a writer gets the level of explanation right the reader does the heavy lifting themselves and the post just enables it.

  8. Now noticing the post fit a particular gap in my reading without my having articulated the gap before, and a look at leadpivot extended that gap filling effect, content that meets needs I had not consciously formulated is content with reader insight and this site has clearly developed that anticipatory editorial sense across many pieces.

Leave a Reply

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