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

  1. flagsync flagsync

    Skipped to a specific section because I knew that was the question I had, and the answer was clean, and a stop at flagsync similarly delivered targeted answers without burying them, content engineered for readers who arrive with specific needs rather than open ended browsing is increasingly valuable in a search heavy reading environment.

  2. creativefashioncorner creativefashioncorner

    Appreciated that the writer trusted the reader to follow along without constant restating of earlier points, and a look at creativefashioncorner 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.

  3. simplegiftfinder simplegiftfinder

    Good quality through and through, no rough edges and no signs of being rushed, and a quick look at simplegiftfinder kept the same polish going, the kind of site that respects its own brand by maintaining consistency across pages which is something I always appreciate as a reader looking for trustworthy information online today.

  4. yourdailyvalue yourdailyvalue

    Once you start reading carefully here it is hard to go back to lower quality alternatives, and a stop at yourdailyvalue reinforced that ratchet effect, the way good content raises standards is real over time and this site has clearly contributed to raising my expectations for what is possible in writing on the topic generally.

  5. olivepick olivepick

    Took a few notes from this post, the points are easy to remember without needing to come back and check, and a look at olivepick added a couple more, the kind of place that sticks in the memory long after the browser tab has been closed for the day which says a lot really.

  6. sprygain sprygain

    Thanks for the clean writing, no broken sentences and no awkward translations like some other sites have, and a quick stop at sprygain 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.

Leave a Reply

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