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)

4,762 Comments

  1. Now adding this to a list of sites I want to see flourish, and a stop at gunbolt reinforced that wish, the few sites I actively root for are sites that produce the kind of work I want more of in the world and this one has joined that small list based on what I have read so far.

  2. Picked up a couple of new ideas here that I can actually try out, and after my visit to sheentrundle I have even more notes saved, this is the kind of resource that pays you back for the time you spend on it which is rare to come across in this corner of the web.

  3. This filled in a gap in my understanding that I had not even noticed was there, and a stop at unicorntiger did the same, the kind of post that gives you more than you expected when you first clicked through from somewhere else, a real find for anyone curious about the area covered here.

  4. Thanks for not padding this with the usual filler intros and outros that every other blog seems to require, and a quick visit to jararch continued that lean approach across more posts, content stripped of waste is content that respects you and I will always come back to that kind of approach.

  5. Well done, the kind of post that makes you slow down and actually read instead of skimming for keywords, and a look at orbitnomad kept me reading carefully too, that is a sign of writing that has been crafted rather than churned out for an algorithm to see today and tomorrow.

  6. Bookmark folder created specifically for this site, and a look at vyxarc confirmed the dedicated folder was the right call, dedicated folders for individual sites are a level of organisation I rarely deploy and this site has earned that level of dedicated tracking based on the consistency I have seen so far across sessions.

  7. Picked this up between two other things I was doing and got drawn in completely, and after crecall my original tasks were completely forgotten for a while, content that derails a workflow in a positive way by being more interesting than what you were already doing is rare and worth recognising clearly.

  8. Generally I bookmark sparingly to avoid building up a bookmark graveyard but this one earned a permanent slot, and a stop at huiyam extended that permanence designation, the few sites I keep permanent bookmarks for are sites I expect to use repeatedly and this one has clearly cleared that expectation bar today.

  9. Solid value for anyone willing to read carefully, and a look at discoverideasworthsharing extends that value across the rest of the site, this is the kind of place that rewards return visits rather than offering everything in a single splashy post and then leaving readers nothing to come back for later which is unfortunately common.

  10. Coming to this with low expectations and being pleasantly surprised by the substance, and a stop at vyxarc continued exceeding expectations, the recalibration of expectations upward across multiple positive readings is one of the actual rewards of careful browsing and this site is providing that recalibration at a steady rate apparently.

  11. Came in confused about the topic and left with a much firmer grasp on it, and after snareshale 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.

  12. Reading this slowly to give it the attention it deserved, and a stop at hekfox earned the same slow read, choosing to read slowly is a small act of respect for content quality and very few sites earn that respect from me but this one did so without any explicit ask which is the cleanest way.

Leave a Reply

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