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)

3,207 Comments

  1. Useful read, especially because the writer did not assume too much background from the reader, and a quick look at everhollowbazaar continued in the same way, a thoughtful site that meets people where they are which is something the modern web could use a lot more of for both casual and serious readers.

  2. Just sat back at the end of the post and felt grateful that someone took the time to write it, and a look at everfieldhome extended that gratitude across more of the site, recognising effort behind quality work is part of what makes the open web a community rather than just a marketplace today.

  3. Thanks for sharing this with the open internet rather than locking it behind a paywall like so many sites do now, and a stop at everwoodsupply kept the same vibe going, generous helpful and clearly written by someone who actually wants people to learn from it rather than just charge them.

  4. Bookmark added in three places to make sure I do not lose the link, and a look at futureharborhome 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.

  5. Someone necessarily lend a hand to make seriously posts I would state.
    That is the very first time I frequented your
    website page and so far? I amazed with the research you made
    to make this actual post incredible. Fantastic process!

  6. Felt the writer did the homework before publishing, the references hold up, and a look at everfieldhome continued that documented care, content with traceable claims rather than vague assertions is the kind I trust and the lack of bald assertion in this post is one of its quietly impressive qualities for me.

  7. Considered as a whole this site has developed a coherent point of view that comes through in individual pieces, and a look at futureharborhome continued displaying that coherence, sites with a unified perspective rather than a grab bag of takes are sites with editorial maturity and this one has clearly developed that maturity through years of work.

Leave a Reply

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