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

  1. Now noticing that the post avoided the temptation to be funny in places where humour would have undermined the substance, and a stop at solarorchardmarketparlor maintained the same restraint, knowing when to be serious is a rare editorial virtue and this site has clearly developed it through what I assume is careful editorial practice over years.

  2. Picked something concrete from the post that I will use immediately, and a look at buildstrongmomentum added another concrete piece, content that produces immediately useful output rather than just abstract appreciation is content that earns its place in my regular rotation without needing any further evaluation from me at this point honestly.

  3. Now noticing that the post never raised its voice even when making a strong point, and a look at learnandaccelerategrowth continued that calm volume, content that can make important points without resorting to typographic emphasis or emotional appeal is content that trusts its substance to do the work and this site has that confidence consistently.

  4. Clean writing, easy to read, and never tries too hard to impress, that combination is harder to find than people think, and after my time on createimpactstructure I am sure this site treats its readers well, no flashy tricks just useful content done right which is honestly all I want online.

  5. A particular kind of restraint shows up in the writing, and a look at buildstrongmomentum maintained the same restraint across pages, knowing what not to say is just as important as knowing what to say and this site has clearly developed strong instincts on both sides of that editorial line throughout pieces I have read.

  6. Good clean post, no errors and no awkward phrasing that breaks the reading flow, and a stop at createimpactstructure kept the same standard, definitely the kind of editorial care that earns a return visit because it tells me the writer is paying attention to details that matter to readers rather than just rushing publication.

  7. I like what you guys are up too. This sort of clever work and reporting!
    Keep up the excellent works guys I’ve incorporated you
    guys to blogroll.

  8. Appreciate how nothing here feels copied or pieced together from other places, the voice is consistent and the tone stays human, and after I checked hupbolt I noticed the same style holds, which is a small detail but it makes the whole experience feel personal rather than like another generic site.

  9. A thoughtful piece that did not strain to be thoughtful, and a look at exploreinnovativepaths continued that effortless quality, when thinking shows up in writing without the writer drawing attention to it you know you are reading something genuinely considered rather than something performing the appearance of consideration which is also common online.

Leave a Reply

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