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

  1. Solid stuff, the kind of post that I will probably refer back to later this month when the topic comes up again, and a look at tritile only confirmed I should bookmark the site as a whole rather than just this single page for future reference and use across coming weeks.

  2. Bookmark added in three places to make sure I do not lose the link, and a look at gorgefair got the same redundant treatment, sites I am afraid to lose are the rare keepers and this is clearly one of them based on what I have read so far across this and a couple of related posts.

  3. The pacing of the post was just right, never rushed and never dragged out unnecessarily, and a look at udonvivid maintained the same rhythm, you can tell the writer has experience because the difficult skill of pacing is something only practiced writers manage to handle well in long form content over time and across formats.

  4. Honest opinion is that this is the kind of post that builds long term trust with readers, and a look at icabran reinforced that perception, the slow accumulation of trust through consistent quality is the only sustainable way to build a real audience and this site is clearly playing that long game.

  5. It’s really a great and helpful piece of info.
    I’m happy that you shared this helpful information with us.
    Please stay us up to date like this. Thanks for sharing.

  6. Speaking as someone who used to recommend blogs frequently and got out of the habit this site is rekindling that impulse, and a look at tractsmoke extended the rekindling, the recovery of an old habit triggered by encountering work that justifies it is itself a small kind of pleasure and this site is providing that recovery experience.

  7. Appreciate the work that went into laying this out so clearly, every section earns its place without filler, and a look at icabran confirmed the same care, definitely the kind of place that deserves a return visit when the topic comes up again later in the future or for any related question.

  8. If some one needs to be updated with hottest technologies after that he must be visit this site and be up to
    date all the time.

  9. Now realising the post solved a small problem I had been carrying for weeks, and a look at sobertrifle extended that problem solving function, content that connects to specific unresolved questions in my own life rather than just providing general interest is content with real practical impact and this site is providing that practical value.

Leave a Reply

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