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

  1. My professional context would benefit from having this kind of resource available, and a look at clevebound extended the professional applicability, the rare site that contributes meaningfully to professional work rather than just personal interest is content with multiplied value and this one is providing that professional utility consistently across multiple pieces.

  2. Reading this prompted me to dig out an old reference book related to the topic, and a stop at flockfine extended that connection to other sources, content that connects me back to my own existing knowledge rather than asking me to forget it is content with continuity and this site has that continuous quality.

  3. Speaking from the perspective of a fairly demanding reader the writing here clears the bar consistently, and a look at modernconsciousmarket continued clearing that bar, the calibration of demanding reader is something I apply to all sources and this site has been one of the few that handles the demanding reading well across pieces sampled.

  4. Reading more of the archives is now on my plan for the weekend, and a stop at neatmills confirmed the archive worth the time, the rare archive worth a dedicated reading session rather than just casual sampling is the rare archive of serious work and this site has clearly produced enough of that work to warrant the deeper exploration.

  5. Even just sampling a few posts the consistency is what stands out, and a look at bracecloth confirmed the broader pattern, sites where every piece I sample lives up to the standard set by the others are sites with serious quality control and this one has clearly invested in whatever editorial process produces that consistency reliably.

  6. I visited many blogs except the audio quality for audio songs present at this web page
    is truly fabulous.

  7. A piece that was confident enough to leave some questions open rather than forcing closure, and a look at falconfern continued that intellectual honesty, content that admits the limits of its scope is more trustworthy than content that pretends to total understanding and this site has the right calibration on certainty consistently.

  8. Now feeling the quiet pleasure of finding writing that takes itself seriously without being self serious, and a stop at hueheron extended that subtle pleasure, the gap between earnest and pretentious is fine and this site has clearly chosen to land on the earnest side without slipping over into pretentious which is impressive.

  9. A small thank you note from me to the team behind this work, the post earned it, and a stop at grebeknot suggested more thanks would be in order over time, recognising the people who do good writing online is something I try to remember to do because the alternative is silence and silence rewards mediocrity unfortunately.

  10. Even just sampling a few posts the consistency is what stands out, and a look at bracecloth confirmed the broader pattern, sites where every piece I sample lives up to the standard set by the others are sites with serious quality control and this one has clearly invested in whatever editorial process produces that consistency reliably.

  11. Picked this for a morning recommendation in our company chat, and a look at hueheron suggested I will mention this site again later, recommending content into a workplace context is a small editorial act that requires confidence in the recommendation and this site is making me confident in those recommendations consistently here too.

  12. I learned more from this short post than from longer articles I read earlier today, and a stop at koalaglade added even more useful detail without going off topic, this site clearly knows how to keep things focused without sacrificing depth which is a hard balance to strike for any writer.

  13. After reading several posts back to back the consistent voice across them is impressive, and a stop at gablejuno continued that voice consistency, sites that maintain a single coherent voice across many pieces by potentially many writers represent serious editorial discipline and this one has clearly developed the institutional consistency needed for that.

  14. A quiet kind of confidence runs through the writing, and a look at heliogust carried that same understated assurance, confidence without bragging is the most attractive register for online writing and the writers here have clearly developed it through practice rather than affecting it through stylistic tricks that would feel hollow eventually.

  15. Thanks for the clean writing, no broken sentences and no awkward translations like some other sites have, and a quick stop at bayvendor kept that polish going nicely, it really does make a difference when a reader can move through a page without tripping on every line or going back to reread.

  16. Without overstating it this is a quietly excellent post, and a look at firjuno extended that quiet excellence, content that earns superlatives without demanding them through marketing language is content that has truly earned them through the substance and this site has clearly produced work in that earned excellence category today.

  17. A piece that reads as if the writer trusted readers to fill in obvious gaps, and a look at protraderacademy continued that respectful approach, content that does not over explain what the reader can infer is content that respects intelligence and this site has clearly chosen to write to capable readers rather than to the lowest common denominator.

  18. Appreciated that the writer trusted the reader to follow along without constant restating of earlier points, and a look at heliogust continued that respect for the reader, treating an audience as capable adults rather than as people to be hand held through every paragraph is something I notice and value highly across the open internet today.

  19. Really like that the writer trusts the reader to follow simple logic without restating every previous point, and a stop at gleamjuly kept that respect going, treating an audience as capable adults rather than as people who need constant hand holding makes a noticeable difference in the reading experience for me.

Leave a Reply

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